Skip to content

Commit

Permalink
perf: increase startup time of event dragging (jquense#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdaberkow authored and jquense committed Nov 7, 2018
1 parent 5857d8f commit 167b69f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/addons/dragAndDrop/withDragAndDrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default function withDragAndDrop(Calendar) {
weekWrapper: WeekWrapper,
})

this.state = {}
this.state = { interacting: false }
}

getChildContext() {
Expand All @@ -118,7 +118,7 @@ export default function withDragAndDrop(Calendar) {
}

handleInteractionStart = () => {
this.setState({ interacting: true })
if (this.state.interacting === false) this.setState({ interacting: true })
}

handleInteractionEnd = interactionInfo => {
Expand Down

0 comments on commit 167b69f

Please sign in to comment.