Fix the freezing on firefox due to hover preview text

This commit is contained in:
Ajay
2022-09-03 00:22:03 -04:00
parent 533b15f44b
commit e3c36ae6e2

View File

@@ -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;
}