Skip to content

Commit

Permalink
fix(web): Fixed right-click triggering buttons, especially hold actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Billiam committed Aug 25, 2022
1 parent 2f6845b commit 1943880
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/directives/pointer-hold.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ const vPointerHold = {
}

el.addEventListener('pointerdown', (e) => {
if (e.button !== 0) {
return
}
const id = e.pointerId
pointers.add(id)
if (data.down) {
Expand Down

0 comments on commit 1943880

Please sign in to comment.