… OK that’s very weird, I tried Edit → Preferences → Editor > set right-click to different values “Paint with background color” and “Select Layer and Move” but it didn’t change anything in the behavior.
Instead, only the current active tool matters:
- Pencil Tool will always draw Background color with right-click as usual
- Move Tool will, only if “Auto Select Layer” is enabled, select layer under cursor and move it on right button hold (which is what the OP asked for, but it requires pre-switching to Move tool)
I found that somebody else had the same bug on this GitHub issue:
and that clearing the aseprite.ini config file fixed the issue (at the cost of losing previous preferences). I couldn’t pinpoint what was wrong in the config file exactly, which would be ideal so you could only delete a few bad lines and keep your config so far.
Anyway if you’re willing to clear your config, or just start with a brand new install of Aseprite, you should be able to set Right-click to Select Layer and Move as suggested by @Olga_Galvanova
Note that Right-click setting applies to drawing tools like Pencil Tool or Line - the Move Tool right-click will always select Layer under cursor and Move it, as we want. So it’s mostly useful to quickly draw, switch layer, keep drawing.
It still has those limitations though:
- it will prevent user from using right-click to draw with background color, erase, etc. (but that’s an inherent limitation of allowing Ctrl in all contexts - this is where a temporary hold Ctrl to select layer would be helpful)
- it will moves the layer, not just select, so for @bimshwel using a tablet it may still not be ideal
For the temporary hold Ctrl alternative, I finally found my answer in his thread:
You have to check for conflicting actions with Ctrl. In my case it was not “Action Modifiers → Translating Selection: Copy Selection” which turned out not to take priority, but “Eyedropper Tool (quick)” which I had remapped to Ctrl (due to my Linux desktop where holding Alt tries to move the window). Then, I mapped “Move Tool (quick)” to Ctrl AND made sure that in Move Tool mode, the top-left option “Auto Select Layer” was checked in advance, so I could indeed use Pencil tool to draw and just hold Ctrl to select and move layer under cursor.
I have to sacrifice the convenient hold Ctrl to pick a color though, so I’m not sure I’ll keep this setting. Maybe I’ll may a modifier combo like Ctrl+Alt or Ctrl+Shift to move layers instead.
I also tried to hold Ctrl to temporarily display Move tool options and toggle “Auto Select Layer” like @fetter_keks but for some reason, as soon as I moved the cursor away the option would revert to its previous value. It may however work on your machine, making it easier to switch selection mode.
In conclusion:
- you can always right click in Move Tool mode with “Auto Select Layer” enabled to move layer under cursor
- on a fresh install you should be able to permanently bind Right-click (in drawing tool modes) to Select and Move Layer (with Auto Select Layer enabled) in Preferences > Editor (hopefully we find a way to preserve your config as much as possible instead of resetting it to use the method above)
- you can also map hold Ctrl to Select and Move Layer just once, from any context, but on some machines you may need to enable “Auto Select Layer” in advance, not while holding Ctrl, due to some bug. You’ll also have to sacrifice other Ctrl mappings like Eyedropper, or use more complex modifiers like Ctrl+Shift
Ideally I’d be able to map Ctrl+Right-click to Select and Move Layer (under cursor) while drawing so I can preserve Ctrl+click for Eyedropper and Right-click to draw with background color, but for now we already have numerous solutions.
We can open new threads for further improvements.