Skip to content

Commit

Permalink
Update VirtualCamera.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve-KX-RL committed Jun 14, 2023
1 parent 3eebd9c commit c146a8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content_scripts/VirtualCamera.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ import * as THREE from '../../thirdPartyCode/three/three.module.js';
if (this.isFlying) return;
// conform to spatial cursor mousemove event pageX and pageY
if (event.button === 2 || !realityEditor.device.environment.variables.requiresMouseEvents) {
let worldIntersectPoint = realityEditor.spatialCursor.getRaycastCoordinates(event.pageX, event.pageY).point;
let worldIntersectPoint = realityEditor.spatialCursor.getRaycastCoordinates(event.pageX, event.pageY, true).point;
if (worldIntersectPoint === undefined) return;
// record pointerdown world intersect point, for off-center camera rotation
this.mouseInput.lastWorldPos = [worldIntersectPoint.x, worldIntersectPoint.y, worldIntersectPoint.z];
Expand Down

0 comments on commit c146a8e

Please sign in to comment.