Delay showing next popover by 2 frames

This resets the CSS animation so it can be played again, otherwise it gets skipped
This commit is contained in:
Svilen Markov 2024-08-22 22:44:27 +01:00
parent 014abdcc00
commit 822b72eee4

View file

@ -36,7 +36,7 @@ function handleMouseEnter(event) {
if (activeTarget !== null) {
if (activeTarget !== target) {
hidePopover();
requestAnimationFrame(showPopover);
requestAnimationFrame(() => requestAnimationFrame(showPopover));
}
return;