Allow fractional values for mouse delta on macOS.
Rounding the mouse delta prevents reading small mouse wheel and trackpad scrolling, which is rounded to 0. A typical value for a small "one-click" scroll on my system is 0.1
Fixes
@@ -46,7 +46,7 @@ NSTrackingArea = cocoapy.ObjCClass('NSTrackingArea')
def getMouseDelta(nsevent):
dx = nsevent.deltaX()
dy = -nsevent.deltaY()
- return int(round(dx)), int(round(dy))
+ return dx, dy
def getMousePosition(self, nsevent):
