Bug fix: ensure playback ends at selection end

This commit is contained in:
Rob Watson 2022-01-14 14:36:17 +01:00
parent a33057651d
commit 9d90ed51e6
1 changed files with 1 additions and 1 deletions

View File

@ -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();