Skip to content

Commit 914fdaf

Browse files
fix: hide menu panel during model drag in world-space AR (#5080)
1 parent a2ed3f7 commit 914fdaf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/model-viewer/src/three-components/ARRenderer.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,10 @@ export class ARRenderer extends EventDispatcher<
11491149
this.handleScalingInXR(scene, delta);
11501150

11511151
if (pivot.parent !== scene) {
1152-
return; // attached to controller instead
1152+
// attached to controller instead
1153+
// when moving the model, the menu panel should disapear
1154+
this.updateMenuPanel(scene, box, delta);
1155+
return;
11531156
}
11541157

11551158
const source = this.updatePivotPosition(scene, delta);

0 commit comments

Comments
 (0)