mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-01 22:09:55 +00:00
[backport core/1.34] fix: prevent middle mouse button from triggering node resize in vueNodes mode (#7528)
Backport of #7511 to `core/1.34` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7528-backport-core-1-34-fix-prevent-middle-mouse-button-from-triggering-node-resize-in-vueN-2ca6d73d36508190af3fc437346f397f) by [Unito](https://www.unito.io) Co-authored-by: Terry Jia <terryjia88@gmail.com>
This commit is contained in:
@@ -327,6 +327,7 @@ const { startResize } = useNodeResize((result, element) => {
|
||||
})
|
||||
|
||||
const handleResizePointerDown = (event: PointerEvent) => {
|
||||
if (event.button !== 0) return
|
||||
if (nodeData.flags?.pinned) return
|
||||
startResize(event)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user