Skip to content

Commit

Permalink
Add sensorEvent property to 'drag:stop' event
Browse files Browse the repository at this point in the history
  • Loading branch information
bahung1221 committed Nov 4, 2020
1 parent 8b4d0ec commit b736322
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Draggable/Draggable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b736322

Please sign in to comment.