mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-13 14:20:44 +00:00
correct throttle ms
This commit is contained in:
parent
5f6ff99cb6
commit
2730444445
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ type Props = {
|
||||||
onShortcut: (name: ShortcutName) => void,
|
onShortcut: (name: ShortcutName) => void,
|
||||||
};
|
};
|
||||||
|
|
||||||
const REPEAT_THROTTLE_MS = 200;
|
const REPEAT_THROTTLE_MS = 130;
|
||||||
|
|
||||||
const ShortcutsProvider = ({ children, onShortcut }: Props) => {
|
const ShortcutsProvider = ({ children, onShortcut }: Props) => {
|
||||||
const listeners = useRef<Map<ShortcutName, Set<ShortcutListener>>>(new Map());
|
const listeners = useRef<Map<ShortcutName, Set<ShortcutListener>>>(new Map());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue