Made the filter box, and carousel close based on clicking or draging the canvas

This commit is contained in:
Robert Best 2016-10-26 18:14:11 +00:00 committed by Devin Howard
parent 3f161c1076
commit 0e6e90759c

View file

@ -377,6 +377,8 @@ const JIT = {
onClick: function(node, eventInfo, e) { onClick: function(node, eventInfo, e) {
// remove the rightclickmenu // remove the rightclickmenu
$('.rightclickmenu').remove() $('.rightclickmenu').remove()
Create.newTopic.hide()
Filter.close()
if (Mouse.boxStartCoordinates) { if (Mouse.boxStartCoordinates) {
if (e.ctrlKey) { if (e.ctrlKey) {
@ -741,6 +743,8 @@ const JIT = {
var self = JIT var self = JIT
var authorized = Active.Map && Active.Map.authorizeToEdit(Active.Mapper) var authorized = Active.Map && Active.Map.authorizeToEdit(Active.Mapper)
Create.newTopic.hide()
Filter.close()
if (node && !node.nodeFrom) { if (node && !node.nodeFrom) {
self.handleSelectionBeforeDragging(node, e) self.handleSelectionBeforeDragging(node, e)
@ -1038,9 +1042,6 @@ const JIT = {
Control.deselectAllEdges() Control.deselectAllEdges()
Control.deselectAllNodes() Control.deselectAllNodes()
} }
} else {
// SINGLE CLICK, resulting from pan
Create.newTopic.hide()
} }
}, // canvasClickHandler }, // canvasClickHandler
updateTopicPositions: function(node, pos) { updateTopicPositions: function(node, pos) {