|
|
@ -389,12 +389,12 @@ class InteractionHandler { |
|
|
|
this.drag.dragging = false; |
|
|
|
let selection = this.drag.selection; |
|
|
|
if (selection && selection.length) { |
|
|
|
this.selectionHandler._generateClickEvent('dragEnd', event, this.getPointer(event.center)); |
|
|
|
selection.forEach(function (s) { |
|
|
|
// restore original xFixed and yFixed
|
|
|
|
s.node.options.fixed.x = s.xFixed; |
|
|
|
s.node.options.fixed.y = s.yFixed; |
|
|
|
}); |
|
|
|
this.selectionHandler._generateClickEvent('dragEnd', event, this.getPointer(event.center)); |
|
|
|
this.body.emitter.emit('startSimulation'); |
|
|
|
} |
|
|
|
else { |
|
|
|