Skip to content

Commit f670719

Browse files
committed
fix: using wrong bounding box for hit testing
1 parent 759a232 commit f670719

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/addons/dragAndDrop/WeekWrapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ class WeekWrapper extends React.Component {
176176
// point here and do the placement computation in handleMove()...
177177
this.eventOffsetLeft = point.x - getBoundsForNode(eventNode).left
178178

179+
const isInBox = pointInBox(getBoundsForNode(node), point)
179180
return (
180-
action === 'move' ||
181-
(action === 'resize' && (!isAllDay || pointInBox(eventNode, point)))
181+
action === 'move' || (action === 'resize' && (!isAllDay || isInBox))
182182
)
183183
})
184184

0 commit comments

Comments
 (0)