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 for Daydream controller touchstart: check for touches property before deep referencing #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gordonbrander
Copy link

Fixes TypeError when touching Daydream trackpad caused by the fact
that Daydream controller creates an event object without a touches
property.

Fixes aframevr/aframe#2669.

This commit was based on immersive-web@4787fe5 for a cleaner merge with https://github.com/aframevr/webvr-polyfill.

See also: corresponding PR to immersive-web#230.

Fixes TypeError when touching Daydream trackpad caused by the fact
that Daydream controller creates an event object without a `touches`
property.

See aframevr/aframe#2669 for background info.

This commit was based on immersive-web@4787fe5
for a cleaner merge with https://github.com/aframevr/webvr-polyfill.
@gordonbrander gordonbrander changed the title Check for touches property before deep referencing Fix for Daydream controller touchstart: check for touches property before deep referencing May 14, 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.

1 participant