Skip to content

Commit 8f515e3

Browse files
committed
have cursor ignore vive-controls/custom touchstart events
1 parent fa35fda commit 8f515e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/cursor.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ module.exports.Component = registerComponent('cursor', {
183183
var point;
184184
var top;
185185

186+
// Ignore custom events (e.g., `vive-controls` touchstart).
187+
if (!evt.isTrusted) { return; }
188+
186189
camera.parent.updateMatrixWorld();
187190
camera.updateMatrixWorld();
188191

0 commit comments

Comments
 (0)