Make hiding highlight button smooth

This commit is contained in:
Ajay Ramachandran
2021-09-30 18:15:06 -04:00
parent ebcb600e99
commit 2064afb235
2 changed files with 8 additions and 13 deletions

View File

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