-
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
Tap events on samsung galaxy devices does not fire for each tap #804
Comments
I am also running into this issue. Any updates on this? Is anyone planning to fix this in the library? @kmc059000 What devices have you seen this on? I have seen it on Samsung Galaxy S6 |
@Chrisgozd we are planning on looking into this but in general its very hard to fix device specific vs bugs on a particular version of android, that said we will do our best. |
@Chrisgozd Galaxy 3, 4, 5, and 6 only. I didn't try it on any other samsung device (tablets) to test if it was a galaxy only issue, or samsung as a whole. We didn't see it on any other devices, but we only have so many to test on. |
There is a gap between |
@runspired It seems to me like we should probably adjust these values in the lib i agree that there should not be a gap between them |
One thing we did was if we knew we didn't need a true This effectively is a new gesture which we called 'click', except we use tap and press together to do it. Vanilla click events in the browser do not care how long the user presses down. |
I do that regularly as well. @kmc059000 |
@kmc059000 @runspired that sounds like another case of "missusing" hammer as a fast click ala #808 |
Pretty much, but that's how this lib is used everywhere : |
Closed in favor of #838 |
Do you consider change the default value of tap event threshold ? I also meet the issue in samsung mobile devices, after we increase the value, the issue is fixed. |
See #683
I am having an issue with tap events on certain devices (Samsung Galaxy line). The issue is that the tap event does not fire each time I tap the element. The tap event fires roughly 10% of the time, and is completely random.
This issue exists even on the hammerjs home page, so it is not a problem with my app. On http://hammerjs.github.io/, when I tap the box, it responds to the tap maybe 10% of the time. I tried this on numerous devices.
Based on my tests, it only seems to happen on galaxy devices (and maybe all samsungs).
It seems as though the tap exceeds the threshold option configured for a tap. To resolve this in my app, I simply set the threshold to 9 instead of 2:
window.Hammer.Tap.prototype.defaults.threshold = 9;
However, I think hammer should be changed to account for this as numerous users of hammer js use a galaxy device or samsung device (depending on which causes the issue).
I mentioned in #683 that the pan recognizer was firing, but I did not have to do anything with the pan recognizer to fix the issue in my case. Changing the threshold resolved it for me.
The text was updated successfully, but these errors were encountered: