From 9d90ed51e69a6c1b103c0e1ef9f53d1bc79fb91d Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Fri, 14 Jan 2022 14:36:17 +0100 Subject: [PATCH] Bug fix: ensure playback ends at selection end --- frontend/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();