Skip to content

Commit

Permalink
[Button] Add touch-action: manipulation to disable double-tap. Reso…
Browse files Browse the repository at this point in the history
…lves #412
  • Loading branch information
techniq committed Jun 27, 2024
1 parent 4b623ba commit a85c73e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silent-crews-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

[Button] Add `touch-action: manipulation` to disable double-tap
2 changes: 1 addition & 1 deletion packages/svelte-ux/src/lib/components/Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
$: _class = cls(
'Button',
'transition duration-200 ring-surface-content/60',
'transition duration-200 ring-surface-content/60 touch-manipulation',
'focus:outline-none focus-visible:ring-1',
fullWidth ? 'flex w-full' : 'inline-flex',
loading ? 'gap-2' : 'gap-1',
Expand Down

0 comments on commit a85c73e

Please sign in to comment.