Add momentum scroll for macos
Taken from @mathewmariani lite-macos
This commit is contained in:
@@ -9,3 +9,11 @@ void set_macos_bundle_resources(lua_State *L)
|
||||
lua_setglobal(L, "MACOS_RESOURCES");
|
||||
}}
|
||||
|
||||
|
||||
/* Thanks to mathewmariani, taken from his lite-macos github repository. */
|
||||
void enable_momentum_scroll() {
|
||||
[[NSUserDefaults standardUserDefaults]
|
||||
setBool: YES
|
||||
forKey: @"AppleMomentumScrollSupported"];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user