loleaflet/src/map/handler/Map.TouchGesture.js |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 0b967ece69e416e09600ab64bbaf13ca28e09fbe
Author:     Muhammet Kara <muhammet.k...@collabora.com>
AuthorDate: Thu Feb 6 16:54:59 2020 +0300
Commit:     Muhammet Kara <muhammet.k...@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.k...@collabora.com>
    Tested-by: Muhammet Kara <muhammet.k...@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});
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to