Skip to content

Commit c146a8e

Browse files
committed
Update VirtualCamera.js
1 parent 3eebd9c commit c146a8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content_scripts/VirtualCamera.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ import * as THREE from '../../thirdPartyCode/three/three.module.js';
157157
if (this.isFlying) return;
158158
// conform to spatial cursor mousemove event pageX and pageY
159159
if (event.button === 2 || !realityEditor.device.environment.variables.requiresMouseEvents) {
160-
let worldIntersectPoint = realityEditor.spatialCursor.getRaycastCoordinates(event.pageX, event.pageY).point;
160+
let worldIntersectPoint = realityEditor.spatialCursor.getRaycastCoordinates(event.pageX, event.pageY, true).point;
161161
if (worldIntersectPoint === undefined) return;
162162
// record pointerdown world intersect point, for off-center camera rotation
163163
this.mouseInput.lastWorldPos = [worldIntersectPoint.x, worldIntersectPoint.y, worldIntersectPoint.z];

0 commit comments

Comments
 (0)