Browse Source

Mac: Turn off momentum-based scrolling.

Sam Lantinga 12 năm trước cách đây
mục cha
commit
e231d5b450
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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]];