Skip to content
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

Check for touch support not working across all devices #929

Open
Narigo opened this issue Nov 24, 2017 · 0 comments
Open

Check for touch support not working across all devices #929

Narigo opened this issue Nov 24, 2017 · 0 comments
Assignees
Labels

Comments

@Narigo
Copy link

Narigo commented Nov 24, 2017

createjs.Touch.isSupported and a few other places use "ontouchstart" in window to check if a device is capable of using touch and which (prefixed) versions it can use.

When we tried it on a Dell Optiplex 9030, the property "ontouchstart" in window returns false in Chrome, even though that device is a touch enabled PC. If we enable the developer tools (with emulating Touch) and restart the page, Chrome returns a true there. Maybe there is a better way to

Our current workaround is setting window.ontouchstart = null; before including createjs / using createjs.Touch.enable.

If we change all occurrences of "ontouchstart" in window into (!!window.TouchEvent), we can run it on the Dell Touch PC with working touch, but we haven't tested this on a touch only / mobile device.

@lannymcnie lannymcnie added the bug label Nov 21, 2018
@lannymcnie lannymcnie self-assigned this Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants