diff --git a/scripts/system/controllers/handControllerGrab.js b/scripts/system/controllers/handControllerGrab.js index cef2c4fdda..9cbdebb93d 100644 --- a/scripts/system/controllers/handControllerGrab.js +++ b/scripts/system/controllers/handControllerGrab.js @@ -1409,12 +1409,11 @@ function MyController(hand) { } } + var pointerEvent; if (rayPickInfo.entityID && Entities.wantsHandControllerPointerEvents(rayPickInfo.entityID)) { entity = rayPickInfo.entityID; name = entityPropertiesCache.getProps(entity).name; - var pointerEvent; - if (Entities.keyboardFocusEntity != entity) { Entities.keyboardFocusEntity = entity; @@ -1464,7 +1463,7 @@ function MyController(hand) { return; } } else if (this.hoverEntity) { - var pinterEvent = { + pointerEvent = { type: "Move", id: this.hand + 1 };