Skip to content

Commit

Permalink
fix(context-menu): prevent text selection during touch interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
lgmarchi committed Nov 28, 2024
1 parent f876227 commit 091c46d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/components/ui/ContextMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@
}
function handleTouchStart(evt: TouchEvent) {
document.body.style.userSelect = "none"
touchTimeout = window.setTimeout(() => {
openContext(evt)
}, 350)
Expand Down

0 comments on commit 091c46d

Please sign in to comment.