Commit 2b3c0212 authored by Romain Loth's avatar Romain Loth

faster dragNodes plugins

2 x refresh was not necessary because invoked by executeNodeMouseMove

(possible pull request)
parent 1827fdf4
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
// Deactivate drag graph. // Deactivate drag graph.
_renderer.settings({mouseEnabled: false, enableHovering: false}); _renderer.settings({mouseEnabled: false, enableHovering: false});
_s.refresh(); // _s.refresh();
_self.dispatchEvent('startdrag', { _self.dispatchEvent('startdrag', {
node: _node, node: _node,
...@@ -198,7 +198,7 @@ ...@@ -198,7 +198,7 @@
// Activate drag graph. // Activate drag graph.
_renderer.settings({mouseEnabled: true, enableHovering: true}); _renderer.settings({mouseEnabled: true, enableHovering: true});
_s.refresh(); // _s.refresh();
if (_drag) { if (_drag) {
_self.dispatchEvent('drop', { _self.dispatchEvent('drop', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment