mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-22 02:12:30 +01:00
add type
This commit is contained in:
parent
4ccf3180ca
commit
c3e110ac27
@ -1029,8 +1029,8 @@ function App() {
|
|||||||
play(resetPlaybackRate);
|
play(resetPlaybackRate);
|
||||||
}, [play, pause, selectedSegments, apparentCutSegments, setCurrentSegIndex, seekAbs, currentApparentCutSeg.start]);
|
}, [play, pause, selectedSegments, apparentCutSegments, setCurrentSegIndex, seekAbs, currentApparentCutSeg.start]);
|
||||||
|
|
||||||
const onTimeUpdate = useCallback((e) => {
|
const onTimeUpdate = useCallback<ReactEventHandler<HTMLVideoElement>>((e) => {
|
||||||
const { currentTime } = e.target;
|
const { currentTime } = e.currentTarget;
|
||||||
if (playerTime === currentTime) return;
|
if (playerTime === currentTime) return;
|
||||||
setPlayerTime(currentTime);
|
setPlayerTime(currentTime);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user