diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 0c75b190..99bfda6a 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -1029,8 +1029,8 @@ function App() { play(resetPlaybackRate); }, [play, pause, selectedSegments, apparentCutSegments, setCurrentSegIndex, seekAbs, currentApparentCutSeg.start]); - const onTimeUpdate = useCallback((e) => { - const { currentTime } = e.target; + const onTimeUpdate = useCallback>((e) => { + const { currentTime } = e.currentTarget; if (playerTime === currentTime) return; setPlayerTime(currentTime);