Skip to content

Commit 505baec

Browse files
committed
minor
1 parent 72db3f8 commit 505baec

File tree

1 file changed

+5
-4
lines changed
  • services/static-webserver/client/source/class/osparc/data/model

1 file changed

+5
-4
lines changed

services/static-webserver/client/source/class/osparc/data/model/Node.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,10 +1226,11 @@ qx.Class.define("osparc.data.model.Node", {
12261226
},
12271227

12281228
setPosition: function(pos) {
1229-
const {
1230-
x,
1231-
y
1232-
} = pos;
1229+
const {x, y} = pos;
1230+
if (x === this.__posX && y === this.__posY) {
1231+
return; // no change
1232+
}
1233+
12331234
// keep positions positive
12341235
this.__posX = parseInt(x) < 0 ? 0 : parseInt(x);
12351236
this.__posY = parseInt(y) < 0 ? 0 : parseInt(y);

0 commit comments

Comments
 (0)