We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4831084 commit 16ac2faCopy full SHA for 16ac2fa
app.html
@@ -39,6 +39,15 @@
39
control.addEventListener('dragging-changed', e => {
40
orbitControls.enabled = !e.value;
41
});
42
+ control.addEventListener('mouseEnter', () => {
43
+ const xrIframes = Array.from(root.childNodes).filter(xrIframe => xrIframe instanceof XRIFrame);
44
+ if (!xrIframes.some(xrIframe => xrIframe.control.draggable)) {
45
+ xrIframe.control.draggable = true;
46
+ }
47
+ });
48
+ control.addEventListener('mouseLeave', () => {
49
+ xrIframe.control.draggable = false;
50
51
xrIframe.control = control;
52
scene.add(control);
53
};
0 commit comments