loleaflet: mobile: ensure to close any popups in long press event

Change-Id: I64d438e3667a92f16d5bc39490ba31fdd83691fb
Reviewed-on: https://gerrit.libreoffice.org/77832
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
This commit is contained in:
Henry Castro 2019-06-28 13:31:02 -04:00
parent 4f0c62898c
commit b0b11b6e7a

View file

@ -167,6 +167,8 @@ L.Map.TouchGesture = L.Handler.extend({
return;
}
this._map.fire('closepopups');
if (window.ThisIsTheiOSApp) {
// console.log('==> ' + e.timeStamp);
if (!this._toolbar._map && this._map._docLayer.containsSelection(latlng)) {