You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the right mouse button is clicked on the element, the onSwipe callback function will always be executed, and it will only stop when the element is clicked again. When using the right mouse button in the browser, a menu will pop up. At this time, the element cannot recognize the mouseup, which will cause onSwipe to be triggered all the time.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Check that this is a concrete bug. For Q&A open a GitHub Discussion.
Fix issue where a secondary click (the right button on a right-handed
mouse) on an element using usePointerSwipe() is treated as if the
primary button (left click on a right-handed mouse) has started a drag.
- Rename filterEvent() to eventIsAllowed() for better clarity
- Fix typo in docs and make punctuation consistent
Fixes#2338
Describe the bug
After the right mouse button is clicked on the element, the onSwipe callback function will always be executed, and it will only stop when the element is clicked again. When using the right mouse button in the browser, a menu will pop up. At this time, the element cannot recognize the mouseup, which will cause onSwipe to be triggered all the time.
Reproduction
https://vueuse.org/core/usePointerSwipe/
System Info
Used Package Man
Video_22-10-20_00-37-28.mp4
ager
pnpm
Validations
The text was updated successfully, but these errors were encountered: