mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 09:30:06 +00:00
[backport core/1.35] fix: prevent middle mouse button from triggering node resize in vueNodes mode (#7529)
Backport of #7511 to `core/1.35` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7529-backport-core-1-35-fix-prevent-middle-mouse-button-from-triggering-node-resize-in-vueN-2ca6d73d3650816eac41e579c41917b2) 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