From 2e4b0ee04d4b7145902850ce1c99895c8d5e506a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=27=C3=A9lectron=20rare?= <108685187+electron-rare@users.noreply.github.com> Date: Tue, 28 Apr 2026 10:28:09 +0200 Subject: [PATCH] fix(3d): enable pointer-events on Canvas for click Previous pointerEvents=none on both the Canvas wrapper and the Canvas itself blocked all React Three Fiber event routing, so onClick handlers on the BMU/I2C/MOSFET meshes never fired. Switch to pointerEvents=auto and keep page scroll working via touchAction=pan-y on the canvas (R3F doesn't consume wheel events without OrbitControls, so scroll passes through naturally). --- src/components/BmuViewer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/BmuViewer.tsx b/src/components/BmuViewer.tsx index 1466e23..9b8be0a 100644 --- a/src/components/BmuViewer.tsx +++ b/src/components/BmuViewer.tsx @@ -570,10 +570,10 @@ export function BmuViewer() { }, []); return ( -
+
+ style={{ background: 'transparent', pointerEvents: 'auto', touchAction: 'pan-y' }}>