Fix T47153: scroll wheel zoom fails with mouses that support smooth scroll on OS X.

This commit is contained in:
Brecht Van Lommel 2016-01-30 22:33:20 +01:00
parent fe0ca82b23
commit 6451c072ce
Notes: blender-bot 2023-02-14 09:19:09 +01:00
Referenced by issue #86223, macOS: touch input fails to work on a Wacom Intuos Pro tablet
Referenced by issue #47153, Scroll wheel zoom in view3d fails on OS X
1 changed files with 1 additions and 1 deletions

View File

@ -1399,7 +1399,7 @@ GHOST_TSuccess GHOST_SystemCocoa::handleMouseEvent(void *eventPtr)
if ([event respondsToSelector:@selector(phase)])
phase = [event phase];
if ([event respondsToSelector:@selector(hasPreciseScrollingDeltas)])
hasMultiTouch = [event hasPreciseScrollingDeltas];
hasMultiTouch = [event hasPreciseScrollingDeltas] && [event subtype] != NSMouseEventSubtype;
/* when pressing a key while momentum scrolling continues after
* lifting fingers off the trackpad, the action can unexpectedly