Bug fix: ensure playback ends at selection end
This commit is contained in:
parent
a33057651d
commit
9d90ed51e6
|
@ -101,7 +101,7 @@ function App(): JSX.Element {
|
||||||
|
|
||||||
// check if the end of selection has been passed, and pause if so:
|
// check if the end of selection has been passed, and pause if so:
|
||||||
if (
|
if (
|
||||||
currentTimeToFrame(position.currentTime) < selection.end &&
|
currentTimeToFrame(positionRef.current.currentTime) < selection.end &&
|
||||||
currentTimeToFrame(currTime) >= selection.end
|
currentTimeToFrame(currTime) >= selection.end
|
||||||
) {
|
) {
|
||||||
pause();
|
pause();
|
||||||
|
|
Loading…
Reference in New Issue