From b0b11b6e7a036b84e5271fa64c9b7ae8b55a8c93 Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Fri, 28 Jun 2019 13:31:02 -0400 Subject: [PATCH] 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 Tested-by: Henry Castro --- loleaflet/src/map/handler/Map.TouchGesture.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loleaflet/src/map/handler/Map.TouchGesture.js b/loleaflet/src/map/handler/Map.TouchGesture.js index e418bfc2a..e5d954f5f 100644 --- a/loleaflet/src/map/handler/Map.TouchGesture.js +++ b/loleaflet/src/map/handler/Map.TouchGesture.js @@ -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)) {