[Libreoffice-commits] online.git: loleaflet/src

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Oct 17 00:09:38 UTC 2018


 loleaflet/src/control/Control.Menubar.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 452015d97789bf5fdc6dc6c58c1c30362dfbd031
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Tue Oct 16 20:03:40 2018 -0400
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Tue Oct 16 20:09:03 2018 -0400

    loleaflet: mobile: do not focus the map after the menu item click
    
    Change-Id: I796c81a5df3471ab2cb9bb36735ad05f6e8f4492

diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index 8f88f2558..2eb1d3661 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -774,7 +774,7 @@ L.Control.Menubar = L.Control.extend({
 			self._executeAction(item);
 		}
 
-		if ($(item).data('id') !== 'insertcomment')
+		if (!L.Browser.mobile && $(item).data('id') !== 'insertcomment')
 			self._map.focus();
 	},
 


More information about the Libreoffice-commits mailing list