Commits

Phillip Nguyen  committed d0207cb

Issue 611: fix sign of mouse dy so that up is positive and down is negative

  • Participants
  • Parent commits f44aeaa

Comments (0)

Files changed (1)

File pyglet/window/cocoa/pyglet_view.py

 
 def getMouseDelta(nsevent):
     dx = nsevent.deltaX()
-    dy = nsevent.deltaY()
-    return int(dx), int(dy)
+    dy = -nsevent.deltaY()
+    return int(round(dx)), int(round(dy))
 
 def getMousePosition(self, nsevent):
     in_window = nsevent.locationInWindow()