mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 02:37:59 +08:00
better detecting 'empty' dragging
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user