We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 098bb3c commit e356ae1Copy full SHA for e356ae1
1 file changed
src/index.tsx
@@ -480,10 +480,11 @@ export function generateTrigger(
480
popupEle.getBoundingClientRect(),
481
);
482
483
- const refreshDelay = Math.max(
484
- 16,
485
- Math.min(mouseLeaveDelay * 500, 100),
486
- );
+ const refreshDelay =
+ mouseLeaveDelay > 0
+ ? Math.max(1000 / 60, Math.min(mouseLeaveDelay * 1000, 1000))
+ : 0;
487
+
488
const scheduleRefresh = () => {
489
const safeHover = safeHoverRef.current;
490
0 commit comments