From e231d5b450ae04d9671e26ed1aba45d94dbd0231 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 13 Sep 2013 17:41:17 -0700 Subject: [PATCH] Mac: Turn off momentum-based scrolling. --- src/video/cocoa/SDL_cocoaevents.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video/cocoa/SDL_cocoaevents.m b/src/video/cocoa/SDL_cocoaevents.m index f0a65e3220b8a..6a673c3d3a1f4 100644 --- a/src/video/cocoa/SDL_cocoaevents.m +++ b/src/video/cocoa/SDL_cocoaevents.m @@ -231,6 +231,9 @@ - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filenam CreateApplicationMenus(); } [NSApp finishLaunching]; + NSDictionary *appDefaults = [NSDictionary dictionaryWithObject:@"NO" forKey:@"AppleMomentumScrollSupported"]; + [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults]; + } if (NSApp && ![NSApp delegate]) { [NSApp setDelegate:[[SDLAppDelegate alloc] init]];