From 1cf56b4ba94768b4c4d42bc5a2ff709563118cda Mon Sep 17 00:00:00 2001 From: Julian Daberkow Date: Tue, 2 Oct 2018 08:35:54 +0200 Subject: [PATCH] Increase startup time of event dragging --- src/addons/dragAndDrop/withDragAndDrop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/addons/dragAndDrop/withDragAndDrop.js b/src/addons/dragAndDrop/withDragAndDrop.js index 9830d0e7c..91240c382 100644 --- a/src/addons/dragAndDrop/withDragAndDrop.js +++ b/src/addons/dragAndDrop/withDragAndDrop.js @@ -97,7 +97,7 @@ export default function withDragAndDrop(Calendar) { weekWrapper: WeekWrapper, }) - this.state = {} + this.state = { interacting: false } } getChildContext() { @@ -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 => {