Mac: Turn off momentum-based scrolling.
authorSam Lantinga <slouken@libsdl.org>
Fri, 13 Sep 2013 17:41:17 -0700
changeset 7739 329c9da4bfeb
parent 7738 10981a646a6d
child 7740 415bb39617a1
Mac: Turn off momentum-based scrolling.
src/video/cocoa/SDL_cocoaevents.m
--- a/src/video/cocoa/SDL_cocoaevents.m	Fri Sep 13 17:40:41 2013 -0700
+++ b/src/video/cocoa/SDL_cocoaevents.m	Fri Sep 13 17:41:17 2013 -0700
@@ -231,6 +231,9 @@
             CreateApplicationMenus();
         }
         [NSApp finishLaunching];
+        NSDictionary *appDefaults = [NSDictionary dictionaryWithObject:@"NO" forKey:@"AppleMomentumScrollSupported"];
+        [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
+
     }
     if (NSApp && ![NSApp delegate]) {
         [NSApp setDelegate:[[SDLAppDelegate alloc] init]];