Fix T52984. Trackpad rotation to natural direction
authorArto Kitula <arto.kitula@gmail.com>
Thu, 26 Oct 2017 20:11:25 +0000 (23:11 +0300)
committerArto Kitula <arto.kitula@gmail.com>
Thu, 26 Oct 2017 20:11:25 +0000 (23:11 +0300)
intern/ghost/intern/GHOST_SystemCocoa.mm

index 42ccfb06fd954d2ffbb7ec0dcbe1e2a81b7e52cc..b4fb788bca938c1d2087917c909fee0440f5b14e 100644 (file)
@@ -1470,7 +1470,7 @@ GHOST_TSuccess GHOST_SystemCocoa::handleMouseEvent(void *eventPtr)
                                GHOST_TInt32 x, y;
                                window->clientToScreenIntern(mousePos.x, mousePos.y, x, y);
                                pushEvent(new GHOST_EventTrackpad([event timestamp] * 1000, window, GHOST_kTrackpadEventRotate, x, y,
-                                                                 [event rotation] * 5.0, 0));
+                                                                 [event rotation] * -5.0, 0));
                        }
                default:
                        return GHOST_kFailure;