better detecting 'empty' dragging

This commit is contained in:
Лаврёнов Антон
2014-05-08 10:14:43 +08:00
parent e33d0eaf7f
commit 3f0e89cd95

View File

@@ -141,9 +141,8 @@
this.setAbsolutePosition(newNodePos);
if (!this._lastPos ||
this._lastPos.x !== newNodePos.x ||
this._lastPos.y !== newNodePos.y) {
if (this._lastPos && this._lastPos.x === newNodePos.x &&
this._lastPos.y === newNodePos.y) {
dd.anim.dirty = true;
}