Ver Fonte

Mac: Turn off momentum-based scrolling.

Sam Lantinga há 12 anos atrás
pai
commit
e231d5b450
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      src/video/cocoa/SDL_cocoaevents.m

+ 3 - 0
src/video/cocoa/SDL_cocoaevents.m

@@ -231,6 +231,9 @@ Cocoa_RegisterApp(void)
             CreateApplicationMenus();
         }
         [NSApp finishLaunching];
+        NSDictionary *appDefaults = [NSDictionary dictionaryWithObject:@"NO" forKey:@"AppleMomentumScrollSupported"];
+        [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
+
     }
     if (NSApp && ![NSApp delegate]) {
         [NSApp setDelegate:[[SDLAppDelegate alloc] init]];