diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-21 08:57:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-21 08:57:09 +0400 |
commit | a00ebaecce6531bedd8db85e0a06a04d57da68c1 (patch) | |
tree | 4842931e16815070b52c8505eab46ba48fc50886 /source/blender/editors | |
parent | 08f5e3897caf20bbdbf20cc55f9b3e0166e999f2 (diff) |
UI: Increase cursor distance to leave keyboard navigation
This mitigates T38505, where moving the mouse while using the wheel/keys
can exit the submenu.
So at least smaller unintentional movements won't be misinterpreted.
Diffstat (limited to 'source/blender/editors')
-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 150141e25cd..ce15188132d 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -114,7 +114,7 @@ static bool ui_mouse_motion_keynav_test(struct uiKeyNavLock *keynav, const wmEve #define BUTTON_AUTO_OPEN_THRESH 0.3 #define BUTTON_MOUSE_TOWARDS_THRESH 1.0 /* pixels to move the cursor to get out of keyboard navigation */ -#define BUTTON_KEYNAV_PX_LIMIT 4 +#define BUTTON_KEYNAV_PX_LIMIT 8 #define MENU_TOWARDS_MARGIN 20 /* margin in pixels */ #define MENU_TOWARDS_WIGGLE_ROOM 64 /* tolerance in pixels */ |