From 822b72eee4e34f67f468f054ada01598b44ff1c6 Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Thu, 22 Aug 2024 22:44:27 +0100 Subject: [PATCH] Delay showing next popover by 2 frames This resets the CSS animation so it can be played again, otherwise it gets skipped --- internal/assets/static/js/popover.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/assets/static/js/popover.js b/internal/assets/static/js/popover.js index aac05dd..d6578ee 100644 --- a/internal/assets/static/js/popover.js +++ b/internal/assets/static/js/popover.js @@ -36,7 +36,7 @@ function handleMouseEnter(event) { if (activeTarget !== null) { if (activeTarget !== target) { hidePopover(); - requestAnimationFrame(showPopover); + requestAnimationFrame(() => requestAnimationFrame(showPopover)); } return;