diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-04-13 14:33:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-04-13 14:36:38 +0300 |
commit | 1534da457efcd52d06b2a9c8a488fe26224974b5 (patch) | |
tree | 5a09517482a12053d602a470384996104958911b /source/blender/windowmanager/WM_api.h | |
parent | 2f367db2cc638e47aa1c6644082070c290a8532d (diff) |
Fix snap gizmo flickering while dragging
Ignore click-drag for non-mouse button drag events
Alternative to fix issue detailed in D10886.
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 1a505b91ac5..280ee75a50f 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -861,6 +861,7 @@ int WM_event_modifier_flag(const struct wmEvent *event); bool WM_event_is_modal_tweak_exit(const struct wmEvent *event, int tweak_event); bool WM_event_is_last_mousemove(const struct wmEvent *event); +bool WM_event_is_mouse_drag(const struct wmEvent *event); int WM_event_drag_threshold(const struct wmEvent *event); bool WM_event_drag_test(const struct wmEvent *event, const int prev_xy[2]); |