the-graph icon indicating copy to clipboard operation
the-graph copied to clipboard

Limit canvas panning

Open bergie opened this issue 11 years ago • 3 comments

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.

bergie avatar Oct 16 '13 17:10 bergie

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)

bergie avatar Nov 05 '13 11:11 bergie

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.

forresto avatar Nov 05 '13 21:11 forresto

Need this for svg branch.

forresto avatar Feb 22 '14 11:02 forresto