Add momentum scroll for macos

Taken from @mathewmariani lite-macos
This commit is contained in:
Francesco Abbate
2021-04-21 09:52:16 +02:00
parent 1f6680b492
commit 12ca5f3d2a
2 changed files with 11 additions and 1 deletions
+8
View File
@@ -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"];
}