ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

please fix the dragging behavior

Open mattymatty opened this issue 2 years ago • 8 comments

Please match every other software out there to pan the canvas. Hold spacebar, cursor turns into the hand icon, then click and drag to pan canvas, when done panning release spacebar. There is no need to make a new pattern, it is a very bad user experience for such a common user interaction. It is always recommended to not stray from existing patterns.

mattymatty avatar Jul 22 '23 20:07 mattymatty

Actually I've never seen spacebar used for that purpose. Most software uses shift since it isn't expected to do anything by default. Spacebar would enter a space if a text element was selected which causes a conflict.

NeedsMoar avatar Jul 24 '23 16:07 NeedsMoar

Look at every single Adobe, Affinity, Blender, Sketch, Figma product. They all use space at.

mattymatty avatar Jul 25 '23 01:07 mattymatty

As an experienced Photoshop, Maya, Houdini, Unity, and Nuke user (and the one who's also well-familiar with a ton of secondary software, like Zbrush, Substance, UVLayout, AE, Audition, etc.), here's what I have to say:

  • Yes, current behavior is both extremely inconvenient and non-standard
  • But no, I don't think spacebar-hold specifically is a good solution. Houdini was using it for years, but even they finally shifted to the industry standard: alt.
  • ... But keeping in mind, that we're in a browser here, alt might be not the best solution. E.g.,in Firefox (I use it) alt displays legacy main menu.

So yes, we should use some function key instead, but alt itself seems as a bad choice.

My proposal: adopt Nuke's navigation scheme. After all, it's a 2d editor, not 3d (kinda). But also, it's a purely node-based one (not nodes PLUS SOMETHING) and it's somewhat compatible with patterns in 3d software. I.e:

  • Pan with middle mouse button OR with Alt+right.
  • Zoom with right mouse button (held, not clicked) OR with Shift+middle.

"or" here means that I suggest both to be working at the same time, not exclusively one or the other. This control scheme is also completely compatible with selection (which, imo, also requires significant rework).

Lex-DRL avatar Jul 25 '23 01:07 Lex-DRL

I vote for middle mouse button panning, I have been able to use it in most of the software I use and the habit is difficult to break. And the mouse wheel for zoom seems natural for me.

I would additionally like to request that the default panning and zooming behavior of the browser would be allowed. Half of the time I'm using a MacBook Pro with a trackpad and Safari and currently the trackpad two finger panning gesture zooms the workspace. The speed is also quite rapid creating a jarring experience as most other software I use respects that panning method.

vulpescodex avatar Jul 28 '23 14:07 vulpescodex

Zoom doesn't work at all for me with my scroll wheel, and from other comments I've seen I'm not the only one. One click of my scroll wheel zooms out to gigantic (beyond scope of window) or in microscopic size. Until I can figure out the simplest navigation issue on ComfyUI, it is unusable.

LeeLorenzSr avatar Jul 29 '23 02:07 LeeLorenzSr

Panning with mouse is also mentioned in: #103 , #757 , #624 , #414

Lex-DRL avatar Jul 29 '23 14:07 Lex-DRL

This may be relevant: https://github.com/subtleGradient/TinkerBot-tech-for-ComfyUI-Touchpad

subtleGradient avatar Dec 05 '23 03:12 subtleGradient

This may be relevant: https://github.com/subtleGradient/TinkerBot-tech-for-ComfyUI-Touchpad

Brrooooo. You just saved the whole group! Amazing solution!

amansharma007 avatar Dec 29 '23 20:12 amansharma007

Consolidating mouse / dragging feature requests here: https://github.com/comfyanonymous/ComfyUI/issues/624

robinjhuang avatar Jul 03 '24 21:07 robinjhuang