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

Fix broken non-ray button interactions, fix Daydream compat clicks #26

Merged
merged 1 commit into from
Mar 31, 2017

Conversation

klausw
Copy link
Contributor

@klausw klausw commented Mar 31, 2017

Using preventDefault on touch events prevented other onscreen
interactive elements such as the "Enter VR" button from working.
Since using preventDefault on touch events is discouraged anyway,
change the logic to ignore duplicate events without suppressing
them.

See also https://developers.google.com/web/updates/2017/01/scrolling-intervention

Also ignore the Cardboard-compatible click events generated
by the Daydream controller while presenting to avoid duplicate
event handling.

Using preventDefault on touch events prevented other onscreen
interactive elements such as the "Enter VR" button from working.
Since using preventDefault on touch events is discouraged anyway,
change the logic to ignore duplicate events without suppressing
them.

See also https://developers.google.com/web/updates/2017/01/scrolling-intervention

Also ignore the Cardboard-compatible click events generated
by the Daydream controller while presenting to avoid duplicate
event handling.
@klausw
Copy link
Contributor Author

klausw commented Mar 31, 2017

@borismus, I didn't include the build/ output changes in my patch to avoid cluttering it, let me know if you want me to include those for easier merging.

@borismus borismus merged commit 19e85ff into borismus:master Mar 31, 2017
@klausw klausw mentioned this pull request Mar 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants