Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swipe and tap action in android #1280

Open
seeungKang opened this issue Feb 7, 2022 · 0 comments
Open

swipe and tap action in android #1280

seeungKang opened this issue Feb 7, 2022 · 0 comments

Comments

@seeungKang
Copy link

Hi.
I am using hammerjs for mobile devices.
In service, we are using double tap as "Like" action and swipe as "Next or Previous content" action.

In android devices, a little dragged tap seems to be handled as swipe.
So double tap hardley works (as "Like" action) because "a little dragged tap" is handled as swipe.
Almost every double tap action goes like "swipe - tap" or "tap - swipe" (even "swipe - swipe")
I tried two ways to solve this.

  1. use recognizeWith to bind tap and swipe
  2. change options of swipe action

As I figured out solution 1 is not available, I tried solution 2.
However, changing swipe action's velocity and threshold doesn't work.

Can I get any other solution for divide swipe and tap more specifically?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant