mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Handle preview bar hover without js
This commit is contained in:
parent
6381f36a90
commit
b8d6d4a0b3
2 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue