[backport core/1.34] feat: bring node to front when clicking on any widget (#7520)

## Summary
Backport of #7202 to core/1.34

- Adds a capture-phase pointerdown handler to NodeWidgets that calls
`bringNodeToFront` whenever any widget is clicked
- Improves UX by ensuring the interacted node is always visible on top,
without requiring the node itself to be selected

fix https://github.com/Comfy-Org/ComfyUI_frontend/issues/7131

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7520-backport-core-1-34-feat-bring-node-to-front-when-clicking-on-any-widget-2ca6d73d365081609bc0e2732a99f5d1)
by [Unito](https://www.unito.io)

Co-authored-by: Johnpaul Chiwetelu <49923152+Myestery@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Christian Byrne
2025-12-15 16:20:55 -08:00
committed by GitHub
parent 72eee5bfe9
commit c5ebb479a2
10 changed files with 162 additions and 0 deletions