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, {