[Libreoffice-commits] online.git: loleaflet/src
Muhammet Kara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Feb 7 12:33:07 UTC 2020
loleaflet/src/map/handler/Map.TouchGesture.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 0b967ece69e416e09600ab64bbaf13ca28e09fbe
Author: Muhammet Kara <muhammet.kara at collabora.com>
AuthorDate: Thu Feb 6 16:54:59 2020 +0300
Commit: Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Fri Feb 7 13:32:50 2020 +0100
mobile: do not trigger singleclick on longpress inside the selection range
Change-Id: I488758dc28d05ddaf7c59db7ef59047b0e2d9a11
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88104
Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>
Tested-by: Muhammet Kara <muhammet.kara at collabora.com>
diff --git a/loleaflet/src/map/handler/Map.TouchGesture.js b/loleaflet/src/map/handler/Map.TouchGesture.js
index 7d9d07f5d..db7efb084 100644
--- a/loleaflet/src/map/handler/Map.TouchGesture.js
+++ b/loleaflet/src/map/handler/Map.TouchGesture.js
@@ -262,13 +262,16 @@ L.Map.TouchGesture = L.Handler.extend({
// we trigger the context menu by sending a right click
var graphicSelection = docLayer._graphicSelection;
var cellCursor = docLayer._cellCursor;
+ var bContainsSel = false;
+ if (cellCursor)
+ bContainsSel = docLayer.containsSelection(latlng);
var textSelection;
if (docLayer._textSelectionStart && docLayer._textSelectionEnd)
textSelection = new L.LatLngBounds(docLayer._textSelectionStart.getSouthWest(), docLayer._textSelectionEnd.getNorthEast());
if ((textSelection && textSelection.inBand(latlng))
|| (graphicSelection && graphicSelection.contains(latlng))
- || (cellCursor && cellCursor.contains(latlng))) {
+ || (cellCursor && cellCursor.contains(latlng)) || bContainsSel) {
// long touched an already selected object
// send right click to trigger context menus
this._map._contextMenu._onMouseDown({originalEvent: e.srcEvent});
More information about the Libreoffice-commits
mailing list