Skip to content

Commit

Permalink
have cursor ignore vive-controls/custom touchstart events
Browse files Browse the repository at this point in the history
  • Loading branch information
ngokevin committed Oct 19, 2017
1 parent fa35fda commit 8f515e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/cursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ module.exports.Component = registerComponent('cursor', {
var point;
var top;

// Ignore custom events (e.g., `vive-controls` touchstart).
if (!evt.isTrusted) { return; }

camera.parent.updateMatrixWorld();
camera.updateMatrixWorld();

Expand Down

0 comments on commit 8f515e3

Please sign in to comment.