do not propagate click and double click out of expanding control

This commit is contained in:
Gwendolyn 2024-12-29 18:54:12 +01:00
parent e8a2d27bc2
commit 1cbada095e

View file

@ -2670,7 +2670,7 @@ ExpandingControl = L.Control.extend({
$(this._container).on('click', 'div.pin-toggle', e => { $(this._container).on('click', 'div.pin-toggle', e => {
this.togglePinned(); this.togglePinned();
}); });
$(this._container).on('mousedown pointerdown wheel', e => { $(this._container).on('click dblclick mousedown pointerdown wheel', e => {
e.stopPropagation(); e.stopPropagation();
}); });