From c3e110ac27120e74ce3284f1f7329c82eba0ee33 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Fri, 9 Aug 2024 17:38:59 +0200 Subject: [PATCH] add type --- src/renderer/src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);