From d57250934e46cf9003dbfd4fb515f6d9ea87d38e Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Tue, 26 Jan 2021 00:07:52 +0100 Subject: [PATCH] Use the right event in drag component command --- src/commands/view/ComponentDrag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/view/ComponentDrag.js b/src/commands/view/ComponentDrag.js index 3a89baf54..c5cbff9ed 100644 --- a/src/commands/view/ComponentDrag.js +++ b/src/commands/view/ComponentDrag.js @@ -308,7 +308,7 @@ export default { }; }, - onStart() { + onStart(event) { const { target, editor, isTran, opts } = this; const { center, onStart } = opts; const { Canvas } = editor;