From d8aa1a620d928f482f4ce50094e648bb694f84be Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Tue, 3 Aug 2021 07:59:00 +0200 Subject: [PATCH] Add default top left in absolute mode. Closes #2547 --- src/commands/view/ComponentDrag.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/view/ComponentDrag.js b/src/commands/view/ComponentDrag.js index 658561961..3ebbdd189 100644 --- a/src/commands/view/ComponentDrag.js +++ b/src/commands/view/ComponentDrag.js @@ -269,8 +269,8 @@ export default { x = this.getTranslate(transform); y = this.getTranslate(transform, 'y'); } else { - x = parseFloat(left); - y = parseFloat(top); + x = parseFloat(left || 0); + y = parseFloat(top || 0); } return { x, y };