From e3c36ae6e2e67a3ac85f496aa3ec0a7c82099af3 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sat, 3 Sep 2022 00:22:03 -0400 Subject: [PATCH] Fix the freezing on firefox due to hover preview text --- src/js-components/previewBar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js-components/previewBar.ts b/src/js-components/previewBar.ts index 29cc1bbd..70f54300 100644 --- a/src/js-components/previewBar.ts +++ b/src/js-components/previewBar.ts @@ -105,7 +105,7 @@ class PreviewBar { if (!mouseOnSeekBar || !this.categoryTooltip || !this.categoryTooltipContainer) return; // If the mutation observed is only for our tooltip text, ignore - if (mutations.length === 1 && (mutations[0].target as HTMLElement).classList.contains("sponsorCategoryTooltip")) { + if (mutations.some((mutation) => (mutation.target as HTMLElement).classList.contains("sponsorCategoryTooltip"))) { return; }