comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
52.08k stars 5.48k forks source link

Touchpad two-finger gesture support for macOS #2059

Open miku1958 opened 10 months ago

miku1958 commented 10 months ago

Two-finger gestures are used for movement in MacOS, but become zoom in ComfyUI.

subtleGradient commented 10 months ago

I have this done. I'll submit the code soon

subtleGradient commented 10 months ago

here's an extension that fixes this: https://github.com/subtleGradient/TinkerBot-tech-for-ComfyUI-Touchpad

unphased commented 7 months ago

I tested this. it works. I thought for years that macos doesn't provide a way in safari to implement smooth horizontal and vertical scroll, but it totally does and you did the right thing. I think this functionality needs to go into ComfyUI proper to benefit all mac users. Because it's way too difficult to find your "custom_node" plugin.

emcmanus commented 2 months ago

This is a LIFESAVER when using a magic mouse, since it has super sensitive "high resolution" scrolling and would constantly do wild things with zoom. As long as this doesn't interfere with other platforms, I'd +1 merging this into core Comfy. Thank you for the fix!