mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 04:57:09 +03:00
Make hiding highlight button smooth
This commit is contained in:
@@ -199,13 +199,6 @@ export default class Utils {
|
||||
container.addEventListener("mouseleave", () => {
|
||||
if (element.classList.contains("autoHiding")) {
|
||||
element.classList.add("hidden");
|
||||
|
||||
const animationEndListener = () => {
|
||||
if (element.classList.contains("hidden")) element.classList.add("animationDone");
|
||||
element.removeEventListener("transitionend", animationEndListener);
|
||||
};
|
||||
|
||||
element.addEventListener("transitionend", animationEndListener);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user