Browse Source

A fix in dragging nodes in the graph around

css_transitions
josdejong 11 years ago
parent
commit
0f19f6499f
3 changed files with 5 additions and 5 deletions
  1. +2
    -2
      src/graph/Graph.js
  2. +2
    -2
      vis.js
  3. +1
    -1
      vis.min.js

+ 2
- 2
src/graph/Graph.js View File

@ -428,11 +428,11 @@ Graph.prototype._onDrag = function (event) {
var node = s.node;
if (!s.xFixed) {
node.x = me._canvasToX(me._xToCanvas(s.x) + deltaX);
node.x = me._xToCanvas(me._canvasToX(s.x) + deltaX);
}
if (!s.yFixed) {
node.y = me._canvasToY(me._yToCanvas(s.y) + deltaY);
node.y = me._yToCanvas(me._canvasToY(s.y) + deltaY);
}
});

+ 2
- 2
vis.js View File

@ -13281,11 +13281,11 @@ Graph.prototype._onDrag = function (event) {
var node = s.node;
if (!s.xFixed) {
node.x = me._canvasToX(me._xToCanvas(s.x) + deltaX);
node.x = me._xToCanvas(me._canvasToX(s.x) + deltaX);
}
if (!s.yFixed) {
node.y = me._canvasToY(me._yToCanvas(s.y) + deltaY);
node.y = me._yToCanvas(me._canvasToY(s.y) + deltaY);
}
});

+ 1
- 1
vis.min.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save