Skip to content

Commit f69367d

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 099cfa6 commit f69367d

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
@@ -128,8 +128,8 @@
128128
['focusin', showHandler, focusable],
129129
['focusout', hideHandler, focusable],
130130
['click', showHandler, clickable],
131-
['mouseenter', showHandler, hoverable],
132-
['mouseleave', hideHandler, hoverable]
131+
['pointerenter', showHandler, hoverable],
132+
['pointerleave', hideHandler, hoverable]
133133
];
134134
135135
if (triggeredBy) triggerEls = [...document.querySelectorAll<HTMLElement>(triggeredBy)];

0 commit comments

Comments
 (0)