Extensions/ComfyUI-Block_Mouse_Wheel
ComfyUI Extension

ComfyUI-Block_Mouse_Wheel

Simply blocks ComfyUI mouse wheel zooming/panning

By MatthewK78·Created 2 days ago·Updated 2 days ago· 0
MatthewK78/ComfyUI-Block_Mouse_Wheel
Nodes
On cloudLocal install
Stars0
Updated2 days ago
Readme

ComfyUI-Block_Mouse_Wheel

Blocks wheel events only when they are actually on the graph canvas. This disables mouse-wheel / wheel-event zooming and panning on the canvas, but does not touch keyboard zoom, UI +/- buttons, or wheel scrolling in other DOM controls/scrollbars.

I love the electromagnetic scroll wheel in the Logitech MX Master 3s mouse, and I love smooth scrolling. Unfortunately, even a tiny touch of the scroll wheel in ComfyUI causes zooming/panning to instantly jump to either extreme. Heck, sometimes even the simple act of moving the mouse can cause the wheel to spin ever so slightly, and then I frustratingly have to adjust it back every time it happens. There doesn't appear to be a built-in way to disable it, so here's a simple fix! You can still zoom by using [Ctrl]+[Shift], and this also doesn't affect zooming/panning on your smartphone.

I hope this helps someone else too. 😊