-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 conflict with pinch #871
Comments
I am sorry but I can't see any same bugs in this issues. Could you please explain what bug you are talking about? |
None of those three is closed, they are all open and actively being worked on. The issue is that |
I've missread this. You are right, they're all open. |
Hello, I have a problem on my galaxy S4 Android device: touchstart never fires. Is there another solution possible without touchstart event? Thank You |
@bikb Do you have any keyboard connected? |
No I don't have. |
Reopening this as it's representative of an issue we may still have and need to fix in 2.1 |
I solved this issue by blocking pan / swipe for a certain time (300ms) after / during pinch: During any pinch event, I do
During pan / swipe, I do:
Works perfectly for me. But of cause, this should be part of the library. |
I am using the hammerjs swipe event and get problems in combination with native zoom (pinch).
In a web application I allow users to scroll:
And navigate with AJAX through my pages on swipe:
However, this causes a usability issue. When users try to zoom-in on e.g. iPads, they don't want to trigger the swipe. Instead they just want to zoom the page. But unfortunately this often causes a swipe to get triggered, especially if you zoom-in horizontally.
Firstly I thought using the
pointers
option with the value1
like described in the doc would solve the problem, but it doesn't. I didn't understand why swipe was getting triggered even when swiping with two fingers (if set thepointers
value to1
).Then I thought setting a flag on
pinch
could solve my issue. So I tried setting:After finding out that I need to enable the
pinch
event (#870) that worked for me. But this caused the side-effect that I wasn't able to scroll down the page (#691). But thanks to the idea of @lostPixels I was able to solve the problem with yet another idea:Now you could ask yourself:
Yup
Because:
pointers
with value1
and swiping with two fingers?Cheers.
The text was updated successfully, but these errors were encountered: