From 60cc3af9c204c2525a185da602ab7d2df32e413f Mon Sep 17 00:00:00 2001 From: matei jordache Date: Sat, 28 Mar 2026 19:58:49 -0700 Subject: [PATCH] work on 3d view pan through --- demo | 2 +- frontend/src/SurfaceView.jsx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/demo b/demo index 64fedcd..124b84c 160000 --- a/demo +++ b/demo @@ -1 +1 @@ -Subproject commit 64fedcd3c93fa87802e9bf4540cedad8c11d5909 +Subproject commit 124b84ca7c79895dd9937e1d5ec553b29a9d5552 diff --git a/frontend/src/SurfaceView.jsx b/frontend/src/SurfaceView.jsx index a9fa734..7527fd6 100644 --- a/frontend/src/SurfaceView.jsx +++ b/frontend/src/SurfaceView.jsx @@ -74,6 +74,10 @@ export default function SurfaceView({ meshData, nodeId, widgetValues, runtimeVal const lastGeometrySignatureRef = useRef(''); const syncTimerRef = useRef(null); const lastSnapshotRef = useRef(''); + const isInsideRef = useRef(false); + const pointerEnteredAtRef = useRef(0); + const lastWheelAtRef = useRef(0); + const gestureStartedInsideRef = useRef(false); const [diagnostics, setDiagnostics] = useState({ status: meshData ? 'initializing' : 'waiting for mesh', webgl: 'pending',