mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-31 01:09:22 +02:00
Hide geocoder, background on mousedown
This commit is contained in:
@@ -49,9 +49,9 @@ iD.ui.Background = function(context) {
|
||||
return d3.event.stopPropagation();
|
||||
});
|
||||
|
||||
context.container().on('click.background-outside', function() {
|
||||
context.container().on('mousedown.background-outside', function() {
|
||||
setVisible(false);
|
||||
});
|
||||
}, true);
|
||||
|
||||
var opa = content
|
||||
.append('div')
|
||||
|
||||
@@ -107,7 +107,7 @@ iD.ui.Geocoder = function(context) {
|
||||
return d3.event.stopPropagation();
|
||||
});
|
||||
|
||||
context.container().on('click.geocoder-outside', hide);
|
||||
context.container().on('mousedown.geocoder-outside', hide, true);
|
||||
|
||||
var keybinding = d3.keybinding('geocoder');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user