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