-
Notifications
You must be signed in to change notification settings - Fork 401
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
Find a way to turn off touch controls on desktop browsers #39
Comments
Just to be complete: https://plus.google.com/110275767335437137994/posts/JjGeyS22CPV |
+@janmyler A no brainer question, I have to ask for. Are maybe your webdeveloper-tools open and you just forgot to disable the touch emulation? And if not, what is about testing for a viewport, maybe >= 1280? |
@yckart Nope, Dev-tools/Firebug closed, touch emulation disabled by default. Check out these screenshots: According to e.g. this link, it seems that Chrome and Firefox on Windows support touch events without touchscreen necessarily being connected/available. Simple testing for viewport size imo won't work well if you think about retina devices or the new Nexus 10 tablet. |
For reference, http://modernizr.github.io/Modernizr/touch.html has a good list of links for the discussion on detection. I'll see what Modernizr has reached as a consensus after I get a chance to dig through all of em... |
So there's no good solution for this still - the workaround I'm planning on putting in is this:
Anyone have any thoughts on this? |
This looks reasonable. In my project, I've used a workaround based on window.orientation detection, which is undefined in desktop browsers (at least as far as i know). Not sure if it makes sense, though. |
An idea could be to add the ability to disable touch or mouse events globally, as I can't think of an alternative that will leave everybody happy. Then people can check for features, for browsers, OS, etc and enable/disable as per their own needs. Something like:
What do you guys think? |
I just wanted to know is there a way to solve it in case I am sure my code only will work for touch based devices? |
See G+ Discussion
The text was updated successfully, but these errors were encountered: