spine-editor icon indicating copy to clipboard operation
spine-editor copied to clipboard

Allow swapping RMB and MMB

Open NathanSweet opened this issue 3 years ago • 6 comments

Some users prefer MMB for panning. We could provide a setting to swap RMB (panning) and MMB (selection).

http://esotericsoftware.com/forum/Some-minor-feature-QoL-requests-15565

NathanSweet avatar Aug 13 '22 02:08 NathanSweet

@NathanSweet I'm also used to panning with MMB from Blender etc,, but do the same (panning) in Spine with MMB (when using a mouse) without any issue; it already works this way out of the box. So isn't this already working the way requested? Or am I missing something about this feature request, just curious?

bencresty avatar Aug 15 '22 21:08 bencresty

@bencresty Not sure why MMB is panning for you!

In Spine MMB is used to make selections. Clicking will select an item and dragging will box select, even if you already have a selection. That can be slightly faster than deselecting then using LMB to box select. Plus it's nice to know if you MMB you always get selection, while with LMB you sometimes get manipulation when there is already a selection.

RMB drag is used for panning and RMB click does a secondary action, like switching tools (when clicking in the viewport) or selecting a item in the tree when LMB does another action (eg a skin in the Skins view).

NathanSweet avatar Aug 15 '22 22:08 NathanSweet

@NathanSweet I just double checked but it's really panning with MMB out of the box. I use a microsoft mouse and it allows specific app-settings, but I don't have any configured here; mouse button click is still set to mouse button click on the mouse.

I'm using Spine quite some time now and AFAIK this always worked this way with all Spine versions I used and I even switched PCs in the mean time, same thing.

What you say about MMB to quickly make selections sounds very useful and interesting (well if we could indeed switch that to another button) (perhaps especially for setting weights in my workflow), but I can't get that to work here as you describe. This is how it works on Windows with Spine 4.1.08 here:

  • LMB: selections, clicking, box select etc.
  • MMB: panning (also in the graph editor)
  • RMB: right mouse button options (toggling tools for instance)

This is why I was confused when seeting this issue. I wonder how to get that special selection way now, sounds interesting.

bencresty avatar Aug 15 '22 22:08 bencresty

I see why it's working for me here now, it's a setting in Spine I have checked:

image

So panning with MMB already works when this checkbox is checked (using it for a long time now).

But it looks like it throws away the selection method in that mode, eventhough that still sounds like a useful method to have.

Perhaps when clicking that mode it shouldn't COPY the dragging behaviour from the RMB (now both RMB and MMB drag), but indeed SWAP the behaviour of RMB and MMB so we can have that selection method, but with RMB, right?

bencresty avatar Aug 15 '22 22:08 bencresty

Haha, I thought there was a setting but didn't see it when I looked, so I created this issue. Oops!

You're right, using "MMB pans" gives you pan for both MMB and RMB. I agree it would be good to swap them instead, so functionality isn't lost. Good thing this issue is still useful!

NathanSweet avatar Aug 15 '22 23:08 NathanSweet

@NathanSweet haha, we've all been there one day! :)

bencresty avatar Aug 16 '22 14:08 bencresty