[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2' - loleaflet/src

thais-dev (via logerrit) logerrit at kemper.freedesktop.org
Tue Sep 15 13:57:59 UTC 2020


 loleaflet/src/control/Control.ColumnHeader.js |    2 +-
 loleaflet/src/control/Control.RowHeader.js    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6fddddaef8a61c610656ca6eafe00251d0b88977
Author:     thais-dev <thais.vieira at collabora.com>
AuthorDate: Tue Sep 1 07:22:23 2020 -0300
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Tue Sep 15 15:57:39 2020 +0200

    Loleaflet: add time value
    
    for the context menu of header be in sync
    with the context menu of the cells.
    
    Change-Id: I3f228e57375b10671b98de1a1444af87e8b2ed38
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101924
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tor Lillqvist <tml at collabora.com>
    Reviewed-by: Aron Budea <aron.budea at collabora.com>
    (cherry picked from commit e32fc7981e3fffe218d6211929b11a6d1b6f9ad6)
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102418
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/loleaflet/src/control/Control.ColumnHeader.js b/loleaflet/src/control/Control.ColumnHeader.js
index a18b707bd..4c7dc5372 100644
--- a/loleaflet/src/control/Control.ColumnHeader.js
+++ b/loleaflet/src/control/Control.ColumnHeader.js
@@ -99,7 +99,7 @@ L.Control.ColumnHeader = L.Control.Header.extend({
 			});
 		} else {
 			var menuData = L.Control.JSDialogBuilder.getMenuStructureForMobileWizard(this._menuItem, true, '');
-			(new Hammer(this._canvas, {recognizers: [[Hammer.Press]]}))
+			(new Hammer(this._canvas, {recognizers: [[Hammer.Press, {time: 500}]]}))
 			.on('press', L.bind(function () {
 				if (this._map.isPermissionEdit()) {
 					window.contextMenuWizard = true;
diff --git a/loleaflet/src/control/Control.RowHeader.js b/loleaflet/src/control/Control.RowHeader.js
index 27a681f18..6cdc82a45 100644
--- a/loleaflet/src/control/Control.RowHeader.js
+++ b/loleaflet/src/control/Control.RowHeader.js
@@ -96,7 +96,7 @@ L.Control.RowHeader = L.Control.Header.extend({
 			});
 		} else {
 			var menuData = L.Control.JSDialogBuilder.getMenuStructureForMobileWizard(this._menuItem, true, '');
-			(new Hammer(this._canvas, {recognizers: [[Hammer.Press]]}))
+			(new Hammer(this._canvas, {recognizers: [[Hammer.Press, {time: 500}]]}))
 			.on('press', L.bind(function () {
 				if (this._map.isPermissionEdit()) {
 					window.contextMenuWizard = true;


More information about the Libreoffice-commits mailing list