From 5061c17f75bebdc996f8d7c5ef35e2005f117f1f Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sat, 14 Aug 2021 07:18:14 -0700 Subject: [PATCH] Disable the menu on clip/snapshot playing. --- src/frigate-card.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frigate-card.ts b/src/frigate-card.ts index 3cfee965..395ecbec 100644 --- a/src/frigate-card.ts +++ b/src/frigate-card.ts @@ -2,6 +2,7 @@ // TODO Add title to clips / snapshots playing/viewing // TODO Add gallery item to take to media browser // TODO Add documentation & screenshots. +// TODO Clips do not auto-play on Android. // TODO Sometimes webrtc component shows up as not found in browser (maybe after fresh build?) /* eslint-disable @typescript-eslint/no-explicit-any */ @@ -308,9 +309,10 @@ export class FrigateCard extends LitElement { class="mdc-image-list__image" src="data:image/png;base64,${event.thumbnail}" @click=${() => { + this._showMenu = false; this._viewEvent = event; this._viewMode = want_clips ? - FrigateCardView.CLIP : FrigateCardView.SNAPSHOT + FrigateCardView.CLIP : FrigateCardView.SNAPSHOT; }} >