[Bf-blender-cvs] [6451c07] master: Fix T47153: scroll wheel zoom fails with mouses that support smooth scroll on OS X.
Brecht Van Lommel
noreply at git.blender.org
Sat Jan 30 22:36:14 CET 2016
Commit: 6451c072cef853cbdbd9db1b149463f959fb6d47
Author: Brecht Van Lommel
Date: Sat Jan 30 22:33:20 2016 +0100
Branches: master
https://developer.blender.org/rB6451c072cef853cbdbd9db1b149463f959fb6d47
Fix T47153: scroll wheel zoom fails with mouses that support smooth scroll on OS X.
===================================================================
M intern/ghost/intern/GHOST_SystemCocoa.mm
===================================================================
diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm
index 80559fe..90f4557 100644
--- a/intern/ghost/intern/GHOST_SystemCocoa.mm
+++ b/intern/ghost/intern/GHOST_SystemCocoa.mm
@@ -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
More information about the Bf-blender-cvs
mailing list