mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +03:00
Cleanup
This commit is contained in:
parent
81144be239
commit
0914514715
@ -272,12 +272,12 @@ class PreviewVideoController extends PreviewController {
|
||||
return false;
|
||||
}
|
||||
|
||||
const seekTime = time - this.preview.start;
|
||||
const seekTime = Math.max(0, time - this.preview.start);
|
||||
|
||||
if (this.seeking) {
|
||||
this.timeToSeek = seekTime;
|
||||
} else {
|
||||
this.previewRef.current.currentTime = Math.max(0, seekTime);
|
||||
this.previewRef.current.currentTime = seekTime;
|
||||
this.seeking = true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user