From a417b51eb73878ea7fe7e169f1d7f00437b0920d Mon Sep 17 00:00:00 2001 From: Andrea Bogazzi Date: Sun, 7 Feb 2021 23:11:25 +0100 Subject: [PATCH] set isMoving on real movement only --- src/mixins/canvas_events.mixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mixins/canvas_events.mixin.js b/src/mixins/canvas_events.mixin.js index b90134c231b..637f5825115 100644 --- a/src/mixins/canvas_events.mixin.js +++ b/src/mixins/canvas_events.mixin.js @@ -930,7 +930,6 @@ transform = this._currentTransform; transform.reset = false; - transform.target.isMoving = true; transform.shiftKey = e.shiftKey; transform.altKey = e[this.centeredKey]; @@ -954,6 +953,7 @@ actionPerformed = actionHandler(e, transform, x, y); } if (action === 'drag' && actionPerformed) { + transform.target.isMoving = true; this.setCursor(transform.target.moveCursor || this.moveCursor); } transform.actionPerformed = transform.actionPerformed || actionPerformed;