We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d611b9d commit b8ebba1Copy full SHA for b8ebba1
src/control.js
@@ -94,10 +94,10 @@ export var Geocoder = L.Control.extend({
94
},
95
this
96
);
97
- } else if (L.Browser.touch && this.options.expand === 'touch') {
+ } else if (this.options.expand === 'touch') {
98
L.DomEvent.addListener(
99
container,
100
- 'touchstart mousedown',
+ L.Browser.touch ? 'touchstart mousedown' : 'mousedown',
101
function(e) {
102
this._toggle();
103
e.preventDefault(); // mobile: clicking focuses the icon, so UI expands and immediately collapses
0 commit comments