Commit 04d09804 authored by Nico Mack's avatar Nico Mack

Minor bug fix in move method

parent c8a1079c
......@@ -100,10 +100,13 @@ public class PositionWidget extends PointingWidget implements InformationProvide
if (!Double.isNaN(this.stepSize)) {
double distance = position.distance(newPosition);
doUpdate = distance >= this.stepSize;
} else {
doUpdate = true;
}
position.setLocation(newPosition.x, newPosition.y);
// position.setLocation(newPosition.x, newPosition.y);
}
if (doUpdate) {
position.setLocation(newPosition.x, newPosition.y);
this.variable.setValue(position);
}
} else {
......
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