diff --git a/packages/core/src/commands/view/ComponentDrag.ts b/packages/core/src/commands/view/ComponentDrag.ts index a8abba45c..d997e4d11 100644 --- a/packages/core/src/commands/view/ComponentDrag.ts +++ b/packages/core/src/commands/view/ComponentDrag.ts @@ -395,7 +395,7 @@ export default { this.guidesStatic = this.getGuidesStatic(); }, - onDrag() { + onDrag(event) { const { guidesTarget, opts } = this; this.updateGuides(guidesTarget); @@ -403,6 +403,7 @@ export default { opts.guidesInfo && this.renderGuideInfo(guidesTarget?.filter((item) => item.active) ?? []); opts.onDrag?.(this._getDragData()); + this.opts.event = event; this.em.trigger(`${evName}:move`, this.getEventOpts()); },