mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-16 14:56:00 +00:00
Mac: Turn off momentum-based scrolling.
This commit is contained in:
@@ -231,6 +231,9 @@ Cocoa_RegisterApp(void)
|
|||||||
CreateApplicationMenus();
|
CreateApplicationMenus();
|
||||||
}
|
}
|
||||||
[NSApp finishLaunching];
|
[NSApp finishLaunching];
|
||||||
|
NSDictionary *appDefaults = [NSDictionary dictionaryWithObject:@"NO" forKey:@"AppleMomentumScrollSupported"];
|
||||||
|
[[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
|
||||||
|
|
||||||
}
|
}
|
||||||
if (NSApp && ![NSApp delegate]) {
|
if (NSApp && ![NSApp delegate]) {
|
||||||
[NSApp setDelegate:[[SDLAppDelegate alloc] init]];
|
[NSApp setDelegate:[[SDLAppDelegate alloc] init]];
|
||||||
|
Reference in New Issue
Block a user