Browse Source

placed dragEnd event after restoration of fixed state of node

flowchartTest
Alex de Mulder 9 years ago
parent
commit
302f2f6625
2 changed files with 4403 additions and 4403 deletions
  1. +4402
    -4402
      dist/vis.js
  2. +1
    -1
      lib/network/modules/InteractionHandler.js

+ 4402
- 4402
dist/vis.js
File diff suppressed because it is too large
View File


+ 1
- 1
lib/network/modules/InteractionHandler.js View File

@ -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 {

Loading…
Cancel
Save