philogb/jit — pull request #136 by shinaisan (2012-11-27 13:18:53+00:00)
Title: Force Directed Graph:Edges cannot be dragged when Navigation is enabled

I'm using Force Directed Graph and testing my experimental implementation of dragging edges.

I cannot drag edges when I set true to Navigation.enable even if 'avoid nodes' is specified for Navigation.panning.

It seems that changeing the following line (1) to the line (2) in the onMouseDown function of Extras.Classes.Navigation solves this issue:

if(this.config.panning == 'avoid nodes' && (this.dom? this.isLabel(e, win) : eventInfo.getNode())) return; // (1)

if(this.config.panning == 'avoid nodes' && (this.dom? this.isLabel(e, win) : (eventInfo.getNode() || eventInfo.getEdge()))) return; // (2)

Or are there any panning settings like 'avoid edges' or 'avoid nodes and edges'?

Thanks.