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
Chrome development tools: Emulating Touch Events not working #1869
Comments
When the touch screen is emulated:
When it's not:
We should prbably use the same code as Modernizr: |
fredj
added a commit
to fredj/openlayers
that referenced
this issue
Mar 17, 2014
Use goog.global instead goog.global.document.documentElement to avoid false negative results when using the chrome development tools (Touch Events emulation). Code borrowed from https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js except for the DocumentTouch part which is deprecated (https://developer.mozilla.org/en-US/docs/Web/API/DocumentTouch) Fixes openlayers#1869
fredj
added a commit
to fredj/openlayers
that referenced
this issue
Mar 17, 2014
Use goog.global instead goog.global.document.documentElement to avoid false negative results when using the chrome development tools (Touch Events emulation). Code borrowed from https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js except for the DocumentTouch part which is deprecated (https://developer.mozilla.org/en-US/docs/Web/API/DocumentTouch) Fixes openlayers#1869
pgiraud
pushed a commit
to pgiraud/ol3
that referenced
this issue
Mar 24, 2014
Use goog.global instead goog.global.document.documentElement to avoid false negative results when using the chrome development tools (Touch Events emulation). Code borrowed from https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js except for the DocumentTouch part which is deprecated (https://developer.mozilla.org/en-US/docs/Web/API/DocumentTouch) Fixes openlayers#1869
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://developers.google.com/chrome-developer-tools/docs/mobile-emulation#emulate-touch-events
I suspect that
ol.BrowserFeature.HAS_TOUCH
is incorrect.The text was updated successfully, but these errors were encountered: