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 };