add leading to debounce

pull/1844/head
Mikael Finstad 2024-01-04 23:43:05 +08:00
rodzic 7f32cdca8a
commit 5bbc5d187c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 25AB36E3E81CBC26
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -265,8 +265,9 @@ function MediaSourcePlayer({ rotate, filePath, playerTime, videoStream, audioStr
: { startTime: playerTime, playing, eventId }
), [commandedTime, eventId, playerTime, playing]);
const [debouncedState] = useDebounce(state, 200, {
const [debouncedState] = useDebounce(state, 300, {
equalityFn: (a, b) => a.startTime === b.startTime && a.playing === b.playing && a.eventId === b.eventId,
leading: true,
});
useEffect(() => {