From 43026866fe4e5116d85d0d22619e6d40b65fccf5 Mon Sep 17 00:00:00 2001 From: Kevin Lee <kevin@infinite-lee.com> Date: Wed, 29 Aug 2018 14:02:29 -0700 Subject: [PATCH] fix issue with teleporting on 3-dof --- src/utils/action-event-handler.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils/action-event-handler.js b/src/utils/action-event-handler.js index 80c8d6fb9..3e31fafb9 100644 --- a/src/utils/action-event-handler.js +++ b/src/utils/action-event-handler.js @@ -186,8 +186,10 @@ export default class ActionEventHandler { } onPrimaryDown(e) { - this.onDown(e, "primary_hand_grab"); - this.gotPrimaryDown = true; + if (!this.gotPrimaryDown) { + this.onDown(e, "primary_hand_grab"); + this.gotPrimaryDown = true; + } } onPrimaryUp(e) { -- GitLab