question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using both swipe.right and swipe.left on the same component won't work

See original GitHub issue

Hello, 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:open
  • Created 6 years ago
  • Reactions:13
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

21reactions
kino90commented, Jan 19, 2018

@Aterr , I solved this using v-hammer:swipe.horizontal="onSwipe" and then parsing evt.direction inside onSwipe i can call onSwipeRight and onSwipeLeft.

That’s not (of course) a fix, but it’s working for me, until a fix is released!

9reactions
bsdfzzzycommented, Jan 30, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found