Skip to content

Commit 35927ae

Browse files
committed
fix: themesberg#1435 Avoid double taps on buttons with tooltip on safari iOS
Due to an Safari Issue the first "mouseenter" event will block the "click" event. This can be worked around by using the "pointerenter" instead.
1 parent 235523d commit 35927ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/utils/Popper.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@
123123
['focusin', showHandler, true],
124124
['focusout', hideHandler, true],
125125
['click', showHandler, clickable],
126-
['mouseenter', showHandler, hoverable],
127-
['mouseleave', hideHandler, hoverable]
126+
['pointerenter', showHandler, hoverable],
127+
['pointerleave', hideHandler, hoverable]
128128
];
129129
130130
if (triggeredBy) triggerEls = [...document.querySelectorAll<HTMLElement>(triggeredBy)];

0 commit comments

Comments
 (0)