This commit is contained in:
Nicolas Mowen 2024-03-19 06:53:21 -06:00
parent 81144be239
commit 0914514715

View File

@ -272,12 +272,12 @@ class PreviewVideoController extends PreviewController {
return false; return false;
} }
const seekTime = time - this.preview.start; const seekTime = Math.max(0, time - this.preview.start);
if (this.seeking) { if (this.seeking) {
this.timeToSeek = seekTime; this.timeToSeek = seekTime;
} else { } else {
this.previewRef.current.currentTime = Math.max(0, seekTime); this.previewRef.current.currentTime = seekTime;
this.seeking = true; this.seeking = true;
} }