File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class WeekWrapper extends React.Component {
65
65
66
66
const slot = getSlotAtX (
67
67
bounds ,
68
- point . x - this . eventOffsetLeft ,
68
+ point . x ,
69
69
rtl ,
70
70
slotMetrics . slots
71
71
)
@@ -160,15 +160,6 @@ class WeekWrapper extends React.Component {
160
160
const { isAllDay } = this . props
161
161
const { action } = this . context . draggable . dragAndDropAction
162
162
const bounds = getBoundsForNode ( node )
163
-
164
- // eventOffsetLeft is distance from the left of the event to the initial
165
- // mouseDown position. We need this later to compute the new top of the
166
- // event during move operations, since the final location is really a
167
- // delta from this point. note: if we want to DRY this with
168
- // EventContainerWrapper, probably better just to capture the mouseDown
169
- // point here and do the placement computation in handleMove()...
170
- this . eventOffsetLeft = point . x - bounds . left
171
-
172
163
const isInBox = pointInBox ( bounds , point )
173
164
return (
174
165
action === 'move' || ( action === 'resize' && ( ! isAllDay || isInBox ) )
You can’t perform that action at this time.
0 commit comments