jacomyal/sigma.js — pull request #293 by patrickmarabeas (2014-06-07 10:57:19+00:00)
Title: Fix for overlapping nodes not being draggable

When two nodes are overlapping, and the cursor is moved from one to the other, outNode is called (leaving the first node) thus disabling the ability to drag the second node (who has already called overNode).

This fix (managing a stack of hovered nodes) will allow you to drag the node that you are currently over, irregardless of overlapping or over/out combinations.

over1, over2, out1 = node2 draggable
over1, over2, out2 = node1 draggable
over1, over2, out2, over3, out3 = node1 draggable
over1, over2, over3, out2, out1 = node3 draggable
etc

The only thing lacking currently is the dragged node being on top all other nodes.