Garbage collect segments.

This commit is contained in:
Dermot Duffy
2022-09-24 13:39:17 -07:00
parent a2e80d93a3
commit 5ec3cbac54
5 changed files with 79 additions and 8 deletions
+4 -3
View File
@@ -455,6 +455,10 @@ export class FrigateCardTimelineCore extends LitElement {
* @param properties
*/
protected _timelineRangeChangeHandler(properties: TimelineRangeChange): void {
if (this._pointerHeld) {
this._ignoreClick = true;
}
if (
this._timeline &&
properties.byUser &&
@@ -463,9 +467,6 @@ export class FrigateCardTimelineCore extends LitElement {
properties.event.additionalEvent !== 'pinchin' &&
properties.event.additionalEvent !== 'pinchout'
) {
if (this._pointerHeld) {
this._ignoreClick = true;
}
const targetTime = this._pointerHeld?.window
? add(properties.start, {
-2
View File
@@ -1,6 +1,4 @@
// TODO: When a media viewer is first loaded the selected child won't work (because the underlying carousel has not yet rendered)
// TODO: delete segments if not in summary? is this actually necessary? could it create gaps in data? better off stopping access via summary?
// TODO: Make minitimeline configurable in the editor
import { CSSResultGroup, html, LitElement, TemplateResult, unsafeCSS } from 'lit';