Re-add scroll blocking/throttling (#544)

This commit is contained in:
John
2025-06-02 19:51:38 -04:00
committed by GitHub
parent eaa58492ab
commit e95e30e48c
3 changed files with 49 additions and 1 deletions

View File

@@ -314,6 +314,9 @@ interface SettingsState {
keyboardLedSync: KeyboardLedSync;
setKeyboardLedSync: (sync: KeyboardLedSync) => void;
scrollThrottling: number;
setScrollThrottling: (value: number) => void;
showPressedKeys: boolean;
setShowPressedKeys: (show: boolean) => void;
}
@@ -354,6 +357,9 @@ export const useSettingsStore = create(
keyboardLedSync: "auto",
setKeyboardLedSync: sync => set({ keyboardLedSync: sync }),
scrollThrottling: 0,
setScrollThrottling: value => set({ scrollThrottling: value }),
showPressedKeys: true,
setShowPressedKeys: show => set({ showPressedKeys: show }),
}),