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