diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 3ad6217..3e20556 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -101,7 +101,7 @@ function App(): JSX.Element { // check if the end of selection has been passed, and pause if so: if ( - currentTimeToFrame(position.currentTime) < selection.end && + currentTimeToFrame(positionRef.current.currentTime) < selection.end && currentTimeToFrame(currTime) >= selection.end ) { pause();