vr-components / css-vr-boilerplate

Getting started with VR CSS
2 stars 1 forks source link

Cursor events not working in Firefox #12

Open jcarpenter opened 9 years ago

jcarpenter commented 9 years ago

Cursor events don't seem to be working in Firefox. Have experimented with links and hover states, and both work correctly in Chrome but fail in Firefox.

Test case here: http://mozvr.github.io/cssvr-experiments/20150802-03/index.html

jcarpenter commented 9 years ago

May be related to issue #13 ?

dmarcos commented 9 years ago

This seems related to z-ordering issues. If I remove the front face of the cube that is behind of the menu events work properly.

jcarpenter commented 9 years ago

Interesting, okay so it must be related to the "ray casting" issues (for lack of a better description) that @caseyyee encountered when implementing Horizon's DOM cursor. Wherein the "ray" from camera to cursor originates from an infinite point behind the camera, thereby hitting elements behind us first.

jcarpenter commented 9 years ago

Related bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1171756

jcarpenter commented 9 years ago

Removing front face of the cube (the one behind the elements being clicked) solves the issue. So it seems to be an ordering issue, whereby Firefox is incorrectly interpreting depth ordering. Per #15