diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-29 11:13:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-29 11:13:33 +0300 |
commit | 07d453dd9e0207ff74c0f85583ef9fcc8d54a218 (patch) | |
tree | 00af234ccda861f81cbf1b0035e081ae04129241 /source/blender/editors/interface/interface_handlers.c | |
parent | 8949dfb7a6e2cc9c24d43b0cac4342a1962e22d9 (diff) |
UI: use matching distance checks & define for dragging
Diffstat (limited to 'source/blender/editors/interface/interface_handlers.c')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index f17e6370d09..f08829c6556 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -1762,7 +1762,7 @@ static bool ui_but_drag_init(bContext *C, /* Clamp the maximum to half the UI unit size so a high user preference * doesn't require the user to drag more then half the default button height. */ const int drag_threshold = min_ii( - U.tweak_threshold * U.dpi_fac, + WM_EVENT_CURSOR_CLICK_DRAG_THRESHOLD, (int)((UI_UNIT_Y / 2) * ui_block_to_window_scale(data->region, but->block))); if (ABS(data->dragstartx - event->x) + ABS(data->dragstarty - event->y) > drag_threshold) { |