phase1geo / Minder

Mind-mapping application for Elementary OS
GNU General Public License v3.0
1.01k stars 69 forks source link

Spacebar grab multi-directional view panning #257

Open nekohayo opened 3 years ago

nekohayo commented 3 years ago

For those who are not using a multitouch/multi-scroll-direction trackpad, but rather a desktop computer with a mouse, and who are used to panning with the spacebar (like in GIMP, Inkscape, etc.), it would be nice to have the ability to do so in Minder too. When no node or sidebar widget is selected for editing, holding the spacebar would allow panning simultaneously on X and Y by moving the mouse, until the spacebar is released.

phase1geo commented 3 years ago

This can already be accomplished by holding down the Control key while moving the mouse. I believe this is documented in the Shortcuts cheat sheet.

nekohayo commented 3 years ago

Doesn't work here in version 1.11.2 (from Fedora 33, but I understand it to be roughly the same thing as version 1.11.3), and it does not show up in the keyboard shortcuts dialog... but in any case Ctrl+mousemove isn't standard, spacebar+mousemove is (in all creative apps I've encountered)... besides, ctrl+mousemove would interfere with multi-selections, I would not recommend that to be bound to panning.

phase1geo commented 3 years ago

I misspoke. You can either use the middle mouse click + drag or Alt + mouse movement to pan the canvas.

nekohayo commented 3 years ago

Ah! I didn't realize that because it's not in the shortcuts cheatsheet dialog nor the github README (but, to your credit, it is in https://github.com/phase1geo/Minder/wiki/Canvas, which I had to expressedly look out for now that I've been told the feature actually exists, as there is no built-in user manual in the app other than the shortcuts cheatsheet).

Asides from "maybe it'd be worth having in the readme's cheetsheet too", I would also have two software-side suggestions:

phase1geo commented 3 years ago

I can confirm that the pan mouse shortcut is documented under the "Mouse Events" panel in the shortcuts cheetsheat. If it's not there for 1.11.2, it is there in 1.11.3 (and later).