the-graph
the-graph copied to clipboard
Limit canvas panning
Even though we need to have an infinite canvas (#10), we still should not users get lost in the dot grid jungle.
So, limit panning so that at least one node from the graph is always visible on screen.
This is also related to #37 , as when dragging a node you should be able to pan as far as you like (since you're expanding the graph at the same time)
Cool that within the-graph.panChanged you can change this.pan and return, and it works. Including pan
bound from the-graph-editor mousewheel and the-graph-map drag.
Need this for svg branch.