From d2f60bd0556f5f82de30ab1ce38efdf185917bc1 Mon Sep 17 00:00:00 2001 From: Leon van Kammen <leonvankammen@gmail.com> Date: Fri, 7 Feb 2025 20:38:20 +0100 Subject: [PATCH] bugfix: mouse outside of terminal now controls aframe scene again --- com/dom.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/com/dom.js b/com/dom.js index 70ada40..67c98bf 100644 --- a/com/dom.js +++ b/com/dom.js @@ -66,8 +66,11 @@ if( !AFRAME.components.dom ){ if( !overlay ){ overlay = document.createElement('div') overlay.id = "overlay" - overlay.setAttribute('style','position:fixed;top:0px;left:0px;right:0px;bottom:0px') + overlay.setAttribute('style','position:fixed;top:0px;left:0px;right:0px;bottom:0px;pointer-events:none') document.body.appendChild(overlay) + document.head.innerHTML += ` + <style type="text/css">#overlay * { pointer-events:all }</style> + ` // sceneEl.setAttribute("webxr","overlayElement:#overlay") } return this