[backport core/1.33] fix: preserve node selection on right-click (#7262)

Backport of #7162 to `core/1.33`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7262-backport-core-1-33-fix-preserve-node-selection-on-right-click-2c46d73d36508198a959dd8b2cd99fd8)
by [Unito](https://www.unito.io)

Co-authored-by: Johnpaul Chiwetelu <49923152+Myestery@users.noreply.github.com>
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Comfy Org PR Bot
2025-12-09 11:21:18 +09:00
committed by GitHub
parent 5537877f49
commit 8b2620ee0f

View File

@@ -127,6 +127,10 @@ export function useNodePointerInteractions(
safeDragEnd(event)
return
}
// Skip selection handling for right-click (button 2) - context menu handles its own selection
if (event.button === 2) return
const multiSelect = isMultiSelectKey(event)
const nodeId = toValue(nodeIdRef)