Skip to content

Commit b736322

Browse files
committed
Add sensorEvent property to 'drag:stop' event
1 parent 8b4d0ec commit b736322

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Draggable/Draggable.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -563,11 +563,12 @@ export default class Draggable {
563563

564564
this.dragging = false;
565565

566+
const sensorEvent = getSensorEvent(event);
566567
const dragStopEvent = new DragStopEvent({
567568
source: this.source,
568569
originalSource: this.originalSource,
569-
sensorEvent: event.sensorEvent,
570570
sourceContainer: this.sourceContainer,
571+
sensorEvent,
571572
});
572573

573574
this.trigger(dragStopEvent);

0 commit comments

Comments
 (0)