Comfy-Org / Comfy-Org/ComfyUI_frontend
[Bug] Right-click context menu requires multiple clicks to appear (regression in 1.45.14+)
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 699
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 490
Description
### Description
After upgrading `comfyui-frontend-package` from 1.44.19 to 1.45.14+, right-clicking on the canvas or nodes often requires 2+ clicks for the context menu to appear. The first click is consumed/ignored, and only the second click triggers the menu. This is inconsistent — sometimes it works on the first click, sometimes not.
### Bisect Result
- ✅ 1.44.19 — works fine
- ❌ 1.45.14 — broken
- ❌ 1.45.15 — broken
- ❌ 1.45.19 — broken (latest)
### Environment
- **OS**: Arch Linux
- **ComfyUI**: 0.26.0
- **comfyui-frontend-package**: 1.45.19
- **Browsers tested**: Chromium, Chrome, Firefox — all broken
- **Windows + Edge**: works fine (same machine, same ComfyUI)
### Steps to Reproduce
1. Start ComfyUI with `--disable-all-custom-nodes`
2. Open the web UI in Chromium/Firefox on Linux
3. Right-click on the canvas or any node
4. Observe that the context menu does not appear on the first click, requiring a second or third click
### Additional Context
- Tested across 3 different ComfyUI clones and 2 different conda environments — same result
- Custom nodes are fully disabled, ruling out extension interference
- The issue is specific to Linux browsers (Chromium/Firefox), Windows Edge works fine
Contributor guide
Research direction
Reproduce the issue on Linux with Chromium or Firefox using comfyui-frontend-package 1.45.19, then compare behavior with 1.44.19 around the canvas and node context-menu entry points. Trace the right-click event handling introduced between those versions and verify that the menu appears on the first click without affecting Windows Edge behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100