mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 14:37:23 +03:00
Handle preview bar hover without js
This commit is contained in:
@@ -196,10 +196,7 @@ class PreviewBar {
|
||||
|
||||
this.container.style.transform = "none";
|
||||
} else if (!this.onInvidious) {
|
||||
// Hover listener
|
||||
this.parent.addEventListener("mouseenter", () => this.container.classList.add("hovered"));
|
||||
|
||||
this.parent.addEventListener("mouseleave", () => this.container.classList.remove("hovered"));
|
||||
this.container.classList.add("sbNotInvidious");
|
||||
}
|
||||
|
||||
// On the seek bar
|
||||
|
||||
Reference in New Issue
Block a user