[toolchains] New editor scrollbars quirks
Hello and thanks for the scrollbars. It is a very useful addition! A few quirks/suggestions:
- On both Safari and Chromium the toolchain placement is initialised strangely (I have disabled the cache to make sure it was loading properly, but still):
On my Mac, a two-finger movement does not translate into canvas movement, but on zoom-in/zoom-out. Do you think we could re-bind it so that: (a) two-finger movement is the same as canvas movement and (b) zoom-in/zoom-out is Cmd + two-finger movement or whatever the natural combination should be? That may make the editor a bit more intuitive.
Since you're developing a toolbar, it would be great to have a button that would make the whole toolchain visible on the viewport, re-centering it on the canvas.
Movement is a bit weird... This idea of infinite canvas is implemented in other tools (such as Dia or Excel) in a more natural way. I guess the size is defined by the drawn area contents and then expanded as the user forces in each direction. If the canvas continues blank after the user goes back, then it is re-trimmed. At least, that is the (loose) impression I have by looking at how it works. Of course, the toolkit and widgets for this are very different than the ones we probably have access through a JS canvas, but I thought maybe that could be a helpful hint for an algorithm for this task.