diff --git a/src/Draggable/Draggable.js b/src/Draggable/Draggable.js index 2ff3c5c7e..022060f04 100644 --- a/src/Draggable/Draggable.js +++ b/src/Draggable/Draggable.js @@ -563,11 +563,12 @@ export default class Draggable { this.dragging = false; + const sensorEvent = getSensorEvent(event); const dragStopEvent = new DragStopEvent({ source: this.source, originalSource: this.originalSource, - sensorEvent: event.sensorEvent, sourceContainer: this.sourceContainer, + sensorEvent, }); this.trigger(dragStopEvent); @@ -611,8 +612,8 @@ export default class Draggable { const dragStoppedEvent = new DragStoppedEvent({ source: this.source, originalSource: this.originalSource, - sensorEvent: event.sensorEvent, sourceContainer: this.sourceContainer, + sensorEvent, }); this.trigger(dragStoppedEvent);