From a418b04aeab7ab79c18d4bab27e3dc6b72a86599 Mon Sep 17 00:00:00 2001 From: Kelly Yang <124ykl@gmail.com> Date: Tue, 16 Dec 2025 11:50:24 -0800 Subject: [PATCH 1/2] Fix: the wrong selection under the hand mode (#7541) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Fixed an inconsistency where nodes were resizable in Hand mode. Resizing is now restricted to Selection mode only tomatch standard LiteGraph behavior (Hand mode should only be for panning). ## Changes What: Disabled node resizing logic when the canvas is set to Hand mode. ## Review Focus Try toggling between Selection and Hand modes. Verify that resize handles are unresponsive in Hand mode but work normally in Selection mode. ## Screenshots Before https://github.com/user-attachments/assets/2707cdd9-93f5-4820-9282-893081778dff After https://github.com/user-attachments/assets/4d4ee027-b74a-481a-8b2a-97c58799534a ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7541-Fix-the-wrong-selection-under-the-hand-mode-2cb6d73d3650812b950ef385809130bb) by [Unito](https://www.unito.io) --- 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 a60a716b713..cd35d550ef4 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) } From c5417a0ade49874e97cb325a0d5a846a1273cc10 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 22 Dec 2025 17:39:16 +0000 Subject: [PATCH 2/2] [automated] Apply ESLint and Prettier fixes --- src/renderer/extensions/vueNodes/components/LGraphNode.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/extensions/vueNodes/components/LGraphNode.vue b/src/renderer/extensions/vueNodes/components/LGraphNode.vue index cd35d550ef4..987b944bd84 100644 --- a/src/renderer/extensions/vueNodes/components/LGraphNode.vue +++ b/src/renderer/extensions/vueNodes/components/LGraphNode.vue @@ -342,7 +342,7 @@ const { startResize } = useNodeResize((result, element) => { const handleResizePointerDown = (event: PointerEvent) => { if (event.button !== 0) return - if(!shouldHandleNodePointerEvents.value) return + if (!shouldHandleNodePointerEvents.value) return if (nodeData.flags?.pinned) return startResize(event) }