Skip to content

Commit

Permalink
fix: using wrong bounding box for hit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ehahn9 committed Mar 3, 2021
1 parent 759a232 commit f670719
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/addons/dragAndDrop/WeekWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
)
})

Expand Down

0 comments on commit f670719

Please sign in to comment.