Skip to content

Commit

Permalink
if pick exists, make sure to return it (#12552)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaananW committed May 20, 2022
1 parent 878c1f4 commit 6e8e624
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ export class WebXRControllerPointerSelection extends WebXRAbstractFeature {
};
this._xrSessionManager.runInXRFrame(() => {
this._augmentPointerInit(pointerEventInit, controllerData.id, controllerData.screenCoordinates);
this._scene.simulatePointerUp(new PickingInfo(), pointerEventInit);
this._scene.simulatePointerUp(controllerData.pick || new PickingInfo(), pointerEventInit);
controllerData.finalPointerUpTriggered = true;
});
}
Expand Down

0 comments on commit 6e8e624

Please sign in to comment.