فهرست منبع

Delay showing next popover by 2 frames

This resets the CSS animation so it can be played again, otherwise it gets skipped
Svilen Markov 11 ماه پیش
والد
کامیت
822b72eee4
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      internal/assets/static/js/popover.js

+ 1 - 1
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;