mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 05:05:26 +03:00
Cleanup
This commit is contained in:
parent
81144be239
commit
0914514715
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user