Skip to content

Commit 80b0581

Browse files
committed
Keep long-press alive on iOS
touch-action: manipulation on the host still lets iOS Safari promote a held finger to a scroll gesture and fire pointercancel, killing the long-press timer before the alternates popover opens. Claim the gesture with touch-action: none on .key, and disable the iOS long-press callout.
1 parent 135928b commit 80b0581

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/keyboard/virtual-keyboard.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@
187187
border: 0;
188188
cursor: pointer;
189189
transition: background-color 80ms ease;
190+
touch-action: none;
190191
-webkit-tap-highlight-color: transparent;
192+
-webkit-touch-callout: none;
191193

192194
&:active {
193195
background: color-mix(in srgb, var(--vk-key-bg) 60%, var(--vk-accent));

0 commit comments

Comments
 (0)