Skip to content

Commit e356ae1

Browse files
committed
update
1 parent 098bb3c commit e356ae1

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/index.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,10 +480,11 @@ export function generateTrigger(
480480
popupEle.getBoundingClientRect(),
481481
);
482482

483-
const refreshDelay = Math.max(
484-
16,
485-
Math.min(mouseLeaveDelay * 500, 100),
486-
);
483+
const refreshDelay =
484+
mouseLeaveDelay > 0
485+
? Math.max(1000 / 60, Math.min(mouseLeaveDelay * 1000, 1000))
486+
: 0;
487+
487488
const scheduleRefresh = () => {
488489
const safeHover = safeHoverRef.current;
489490

0 commit comments

Comments
 (0)