From 0b6348e13ff29c73f6d6b30c0096ede92c12a9b9 Mon Sep 17 00:00:00 2001 From: Robert Best Date: Mon, 24 Oct 2016 11:48:34 -0400 Subject: [PATCH] This fix closes the topic creation spinner when the map is panned. (Since, sometimes a click turns into a really small pan) (#828) --- frontend/src/Metamaps/JIT.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/Metamaps/JIT.js b/frontend/src/Metamaps/JIT.js index 73c1b600..65f5ff46 100644 --- a/frontend/src/Metamaps/JIT.js +++ b/frontend/src/Metamaps/JIT.js @@ -1069,6 +1069,9 @@ const JIT = { Control.deselectAllEdges() Control.deselectAllNodes() } + } else { + // SINGLE CLICK, resulting from pan + Create.newTopic.hide() } }, // canvasClickHandler updateTopicPositions: function (node, pos){