Using both swipe.right and swipe.left on the same component won't work
See original GitHub issueHello, thanks for this wrapper!
I was trying to set both v-hammer:swipe.left="onSwipeLeft"
and v-hammer:swipe.right="onSwipeRight"
with 2 different callbacks, but one of the two callbacks isn’t working.
Is this a bug or there is a better way to do this?
Thanks!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:13
- Comments:18 (8 by maintainers)
Top Results From Across the Web
md-swipe-left and md-swipe-right is doing same functionality ...
It is working fine for left but when i swipe to right , left functionality is firing. Here. I open site with mobile...
Read more >Swipe gestures not working on iOS simulator 13.2
Nothing happens when I try to simulate the swipe using my mouse (I hold the mouse left button, move the mouse and then...
Read more >Swipe left, swipe right — but why? | by Josep Ferrer
What is the meaning, exactly, of the swipe? Swipe right means to like or accept someone, while swipe left means to reject them....
Read more >Left swipe to delete & Right swipe to archive| source file
Find the Source file : https://www.figma.com/community/file/1009059423270374419/Double- Swipe -Interaction-prototype Find the previous ...
Read more >Using Swipe to Trigger Contextual Actions
Implementations of swipe-to-delete or swipe to reveal contextual ... in the Spotify app, swiping left on a song that was not part of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Aterr , I solved this using
v-hammer:swipe.horizontal="onSwipe"
and then parsingevt.direction
insideonSwipe
i can callonSwipeRight
andonSwipeLeft
.That’s not (of course) a fix, but it’s working for me, until a fix is released!
Thanks for notifying it. I’ll find some time to add this new feature, supporting more directions on just one line. Like
v-hammer:swipe.left.right
. Please look forward to next release.