Browse Source

[OSX] fix scroll wheel speed.

Dan Walmsley 6 years ago
parent
commit
c1ce0d6b99
1 changed files with 2 additions and 2 deletions
  1. 2 2
      native/Avalonia.Native/src/OSX/window.mm

+ 2 - 2
native/Avalonia.Native/src/OSX/window.mm

@@ -855,8 +855,8 @@ NSArray* AllLoopModes = [NSArray arrayWithObjects: NSDefaultRunLoopMode, NSEvent
     
     if(type == Wheel)
     {
-        delta.X = [event scrollingDeltaX] / 5;
-        delta.Y = [event scrollingDeltaY] / 5;
+        delta.X = [event scrollingDeltaX] / 50;
+        delta.Y = [event scrollingDeltaY] / 50;
         
         if(delta.X == 0 && delta.Y == 0)
         {