mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-21 18:02:35 +01:00
add type
This commit is contained in:
parent
4ccf3180ca
commit
c3e110ac27
@ -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<ReactEventHandler<HTMLVideoElement>>((e) => {
|
||||
const { currentTime } = e.currentTarget;
|
||||
if (playerTime === currentTime) return;
|
||||
setPlayerTime(currentTime);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user