Skip to content

Commit 5b73fbc

Browse files
committed
[refactor] refactor load3d
1 parent ac93a6b commit 5b73fbc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2161
-4155
lines changed

src/components/graph/GraphCanvas.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
v-if="shouldRenderVueNodes && comfyApp.canvas && comfyAppReady"
3737
:canvas="comfyApp.canvas"
3838
@transform-update="handleTransformUpdate"
39-
@wheel.capture="canvasInteractions.forwardEventToCanvas"
39+
@wheel.capture="handleTransformPaneWheel"
4040
>
4141
<!-- Vue nodes rendered based on graph nodes -->
4242
<VueGraphNode
@@ -175,6 +175,17 @@ const handleVueNodeLifecycleReset = async () => {
175175
}
176176
}
177177
178+
const handleTransformPaneWheel = (event: WheelEvent) => {
179+
// Check if the event target is inside a Load3D component
180+
const target = event.target as HTMLElement
181+
if (target?.closest('.comfy-load-3d')) {
182+
// Don't forward to canvas if it's inside Load3D
183+
return
184+
}
185+
186+
canvasInteractions.forwardEventToCanvas(event)
187+
}
188+
178189
watch(() => canvasStore.currentGraph, handleVueNodeLifecycleReset)
179190
180191
watch(

0 commit comments

Comments
 (0)