Ver código fonte

Fixes macosx over sensitive scrolling

seanpaultaylor 11 anos atrás
pai
commit
723f484f48
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      gameplay/src/PlatformMacOSX.mm

+ 1 - 1
gameplay/src/PlatformMacOSX.mm

@@ -1135,7 +1135,7 @@ bool getMousePointForEvent(NSPoint& point, NSEvent* event)
     NSPoint point = [self convertPoint:[event locationInWindow] fromView:nil];
     NSPoint point = [self convertPoint:[event locationInWindow] fromView:nil];
 
 
     [__view->gameLock lock];
     [__view->gameLock lock];
-    gameplay::Platform::mouseEventInternal(Mouse::MOUSE_WHEEL, point.x, __height - point.y, (int)([event deltaY] * 10.0f));
+    gameplay::Platform::mouseEventInternal(Mouse::MOUSE_WHEEL, point.x, __height - point.y, (int)([event deltaY]));
     [__view->gameLock unlock];
     [__view->gameLock unlock];
 }
 }