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.
This commit is contained in:
parent
08f5e3897c
commit
a00ebaecce
Notes:
blender-bot
2023-02-14 11:14:32 +01:00
Referenced by issue #38505, Moving mouse while scrolling a sub menu makes it to lose focus
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue