neo4j-labs / arrows.app

A graph drawing application
https://arrows.app
Apache License 2.0
107 stars 16 forks source link

Drag to pan while zoomed in #7

Open tst5381 opened 3 years ago

tst5381 commented 3 years ago

Usually I zoom in to work on a specific area and then need to work on another, currently I must zoom out and then zoom in, which is quite tedious. The functionality to pan without zoom in/out or changing the scale would be much appreciated.

jexp commented 3 years ago

yes ctrl-drag would be nice for that.

apcj commented 3 years ago

Hi @tst5381 , I'm a bit confused by this. Are you not able to pan using mouse scroll wheel? How are you zooming?

tst5381 commented 3 years ago

@apcj With my mouse wheel I can only scroll vertically. I also tried pressing the wheel button to switch the cursor-scrolling mode on, but pointing to horizontal direction doesn't pan the canvas.

apcj commented 3 years ago

Right, I see what you mean @tst5381 . We had wrongly assumed that most people have mice with horizontal scrolling these days. Will think about how to handle this. Would you consider using a trackpad?

guntarsTB commented 2 years ago

The same problem for me too. I have a mouse with a tilting scroll wheel (Logitech M705), but it just doesn't work really. It allows a horizontal scroll for just a small pan movement, i.e. I would have to tilt the scroll wheel 50 times (holding doesn't work - must tilt it and release each time) to pan the diagram significantly. There desperately needs to be another simple way to pan it. It could be a right-click dragging (like in Miro app) or it could be SHIFT-scroll mouse wheel action or CTRL/ALT/SHIFT left/right click dragging, or it could be a middle-click dragging. Keyboard would also do. Just ANY method to pan the diagram. Otherwise I have to zoom out and zoom in, and it works in an unpredictable manner. Disabling the "auto zoom" would also be convenient, otherwise the diagram keeps panning and zooming itself and it is disturbing. UPDATE: Just read the comment above suggesting a trackpad. As a workaround, it does work with a trackpad (thanks for a hint), but since I'm not using the laptop inputs (external kb+mice), it is just a workaround and not a solution. For testing purposes, I opened an image in the same browser and zoomed in. Firefox allows smooth scrolling with left/right scroll (mouse wheel tilting) input. It means, the Arrows.app is the one that's not taking it correctly. Also, I tested SHIFT-scroll mouse wheel action, and Firefox performed excellently on an image file. The Arrows.app doesn't do anything on that action - that's the missing functionality. The middle-click with that strange auto-scroll (or whatever it is called) also works perfectly in Firefox, i.e. it shows the arrows and I can pan an image file. But panning with that function doesn't work in Arrows.app.