diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-30 07:47:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-30 08:03:19 +0300 |
commit | 0c8c1602029b5a0a34b7750c03b03fe990104c0e (patch) | |
tree | 5e807f8f58549936ca5cd072e0a16f4fd8092646 /source/blender/blenloader/intern | |
parent | 82e8e5c871f86e65f332cdde3bd484a55e7e8572 (diff) |
WM: use different drag thresholds for mouse/tablet events
Now a small threshold is used for mouse input,
avoiding delay when gizmos are activated on drag.
Tablet input threshold remains unchanged since
it's easier to make small movements when using a tablet.
A larger threshold for non-cursor input is now used (typically keyboard)
which improves usability when the "Pie Menu on Drag" key-map preference.
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/versioning_userdef.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/versioning_userdef.c b/source/blender/blenloader/intern/versioning_userdef.c index 89f4d86b1b8..7ff9dd70379 100644 --- a/source/blender/blenloader/intern/versioning_userdef.c +++ b/source/blender/blenloader/intern/versioning_userdef.c @@ -411,9 +411,6 @@ void BLO_version_defaults_userpref_blend(Main *bmain, UserDef *userdef) userdef->ndof_flag |= NDOF_TURNTABLE; } } - if (userdef->tweak_threshold == 0) { - userdef->tweak_threshold = 10; - } } /* NOTE!! from now on use userdef->versionfile and userdef->subversionfile */ @@ -604,6 +601,12 @@ void BLO_version_defaults_userpref_blend(Main *bmain, UserDef *userdef) userdef->pref_flag |= USER_PREF_FLAG_SAVE; } + if (!USER_VERSION_ATLEAST(280, 73)) { + userdef->drag_threshold = 30; + userdef->drag_threshold_mouse = 3; + userdef->drag_threshold_tablet = 10; + } + /** * Include next version bump. */ |