From 9ec20f26d4fcf0950a5d10df246c96dcdcb28d94 Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Mon, 22 Dec 2025 10:10:38 -0800 Subject: [PATCH] [backport core/1.35] Fix: the wrong selection under the hand mode (#7720) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Backport of #7541 to core/1.35. Fixed an inconsistency where nodes were resizable in Hand mode. Resizing is now restricted to Selection mode only to match standard LiteGraph behavior (Hand mode should only be for panning). ## Changes - Added guard clause to prevent resize in Hand mode (`shouldHandleNodePointerEvents` check) ## Original PR https://github.com/Comfy-Org/ComfyUI_frontend/pull/7541 ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7720-backport-core-1-35-Fix-the-wrong-selection-under-the-hand-mode-2d16d73d3650813bb00ff906db0440c2) by [Unito](https://www.unito.io) --------- Co-authored-by: Kelly Yang <124ykl@gmail.com> Co-authored-by: GitHub Action --- src/renderer/extensions/vueNodes/components/LGraphNode.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/extensions/vueNodes/components/LGraphNode.vue b/src/renderer/extensions/vueNodes/components/LGraphNode.vue index a60a716b7..987b944bd 100644 --- a/src/renderer/extensions/vueNodes/components/LGraphNode.vue +++ b/src/renderer/extensions/vueNodes/components/LGraphNode.vue @@ -342,6 +342,7 @@ const { startResize } = useNodeResize((result, element) => { const handleResizePointerDown = (event: PointerEvent) => { if (event.button !== 0) return + if (!shouldHandleNodePointerEvents.value) return if (nodeData.flags?.pinned) return startResize(event) }