Merge pull request #13538 from dback2/editHandleMacFix

Edit handle undefined event fix
This commit is contained in:
David Back 2018-07-09 12:08:18 -07:00 committed by GitHub
commit 8f1ad8e367
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1018,7 +1018,7 @@ SelectionDisplay = (function() {
if (SelectionManager.hasSelection()) {
var controllerPose = getControllerWorldLocation(activeHand, true);
var hand = (activeHand === Controller.Standard.LeftHand) ? 0 : 1;
if (controllerPose.valid && lastControllerPoses[hand].valid) {
if (controllerPose.valid && lastControllerPoses[hand].valid && that.triggered) {
if (!Vec3.equal(controllerPose.position, lastControllerPoses[hand].position) ||
!Vec3.equal(controllerPose.rotation, lastControllerPoses[hand].rotation)) {
that.mouseMoveEvent({});