diff --git a/src/addons/dragAndDrop/WeekWrapper.js b/src/addons/dragAndDrop/WeekWrapper.js index 0a6041895f..de3a2113ce 100644 --- a/src/addons/dragAndDrop/WeekWrapper.js +++ b/src/addons/dragAndDrop/WeekWrapper.js @@ -176,9 +176,9 @@ class WeekWrapper extends React.Component { // point here and do the placement computation in handleMove()... this.eventOffsetLeft = point.x - getBoundsForNode(eventNode).left + const isInBox = pointInBox(getBoundsForNode(node), point) return ( - action === 'move' || - (action === 'resize' && (!isAllDay || pointInBox(eventNode, point))) + action === 'move' || (action === 'resize' && (!isAllDay || isInBox)) ) })