diff options
Diffstat (limited to 'source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c')
-rw-r--r-- | source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c b/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c index 45950a32d85..a6e2ba49fe2 100644 --- a/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c +++ b/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c @@ -735,7 +735,7 @@ wmGizmo *wm_gizmomap_highlight_find(wmGizmoMap *gzmap, /* Ensure for drag events we use the location where the user clicked. * Without this click-dragging on a gizmo can accidentally act on the wrong gizmo. */ - if (ISTWEAK(event->type) || (event->val == KM_CLICK_DRAG)) { + if (WM_event_is_mouse_drag(event)) { mval[0] += event->x - event->prevclickx; mval[1] += event->y - event->prevclicky; } |