-
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
Touches are classified as mouse events #547
Comments
Does that create any problems ? |
Yes - for me, it totally defeats the purpose. I'm trying to detect whether a user has a touchscreen, to display a more touch-friendly UI in that case. To do so, I'm listening to |
Did you test in other browsers if the same behaviour occurs ? |
This works fine in Chrome, Internet Explorer and Mobile Safari. Opera appears to have the same issue. |
If you tested which events fire in different browsers and the events are the same (ie they all fire both mouse- and touch-events) but Firefox is the only one causing problems, you're probably better off filing a bug report at Firefox I think... |
I have no idea whether these browsers actually fire two events - I just checked the hammer.js-events, and these have the incorrect I might investigate this further if I have enough time soon. Thanks for your help :) |
Now with Chrome 37 and |
On Firefox 29.0, running on Windows, with hammer.js 1.1.2, events have
event.gesture.pointerType === 'mouse'
even though they are caused by a touchsceen.The text was updated successfully, but these errors were encountered: