summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-10-04 19:29:38 +0200
committerGubolin <gubolin@fantasymail.de>2014-10-04 19:29:38 +0200
commite815f27376f2798bdb75850c5bc5bd88dec2cdcc (patch)
tree5d32c24ebde0299028045e06c93e9022448642c3
parentfa4b069c1fa23699df146b0ac7a40538f68cf937 (diff)
downloadsnap-issue_209.tar.gz
snap-issue_209.zip
don't leave a mark on pen down but on MOVE 0issue_209
-rw-r--r--morphic.js1
-rw-r--r--objects.js4
2 files changed, 1 insertions, 4 deletions
diff --git a/morphic.js b/morphic.js
index b8b176c..4e18482 100644
--- a/morphic.js
+++ b/morphic.js
@@ -4097,7 +4097,6 @@ PenMorph.prototype.forward = function (steps) {
PenMorph.prototype.down = function () {
this.isDown = true;
- this.drawLine(this.center(), this.center());
};
PenMorph.prototype.up = function () {
diff --git a/objects.js b/objects.js
index 905b3d1..150e601 100644
--- a/objects.js
+++ b/objects.js
@@ -3248,9 +3248,7 @@ Morph.prototype.setPosition = function (aPoint, justMe) {
// override the inherited default to make sure my parts follow
// unless it's justMe
var delta = aPoint.subtract(this.topLeft());
- if ((delta.x !== 0) || (delta.y !== 0)) {
- this.moveBy(delta, justMe);
- }
+ this.moveBy(delta, justMe);
};
SpriteMorph.prototype.forward = function (steps) {