Fix weighting calculation in the event of dragging nodes.
Merge pull request #10 from kazasou/master

Fix weighting calculation in the event of dragging nodes.