mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 11:37:02 +03:00
Handle preview bar hover without js
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
height: 3px;
|
||||
}
|
||||
|
||||
#previewbar.hovered {
|
||||
div:hover > #previewbar.sbNotInvidious {
|
||||
transform: scaleY(1)
|
||||
}
|
||||
|
||||
|
||||
@@ -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