diff --git a/src/addons/dragAndDrop/EventContainerWrapper.js b/src/addons/dragAndDrop/EventContainerWrapper.js index e5f2bde28..e0d0afdcd 100644 --- a/src/addons/dragAndDrop/EventContainerWrapper.js +++ b/src/addons/dragAndDrop/EventContainerWrapper.js @@ -73,7 +73,7 @@ class EventContainerWrapper extends React.Component { handleMove = (point, boundaryBox) => { const { event } = this.context.draggable.dragAndDropAction - const { slotMetrics } = this.props + const { accessors, slotMetrics } = this.props if (!pointInColumn(boundaryBox, point)) { this.reset() @@ -85,9 +85,11 @@ class EventContainerWrapper extends React.Component { boundaryBox ) + let eventStart = accessors.start(event) + let eventEnd = accessors.end(event) let end = dates.add( currentSlot, - dates.diff(event.start, event.end, 'minutes'), + dates.diff(eventStart, eventEnd, 'minutes'), 'minutes' )