kopia lustrzana https://github.com/mifi/lossless-cut
add leading to debounce
rodzic
7f32cdca8a
commit
5bbc5d187c
|
@ -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(() => {
|
||||
|
|
Ładowanie…
Reference in New Issue