Made the filter box, and carousel close based on clicking or draging the canvas
This commit is contained in:
parent
3f161c1076
commit
0e6e90759c
1 changed files with 6 additions and 5 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue