sc/source/ui/view/select.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 35d13f5daa86fbe2074982a7f7e87d91b74187d0
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Sat Jan 9 20:01:27 2021 +0530
Commit:     Pranam Lashkari <lpra...@collabora.com>
CommitDate: Fri Apr 2 19:45:07 2021 +0200

    LOK: stop range selection with mouse/touch move in mobile
    
    Change-Id: I0a7b3a5fc89bcbced4acee18415308ed8aa57ba2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109035
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>
    (cherry picked from commit 408e59359b5b67af119059a5d3f47bc807f81300)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110434
    Tested-by: Jenkins
    Reviewed-by: Pranam Lashkari <lpra...@collabora.com>
    (cherry picked from commit 3b7cd120472368730bcdb98d79baf76c9740d16d)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113490
    Tested-by: Pranam Lashkari <lpra...@collabora.com>

diff --git a/sc/source/ui/view/select.cxx b/sc/source/ui/view/select.cxx
index 0ef0e2059b2b..1a51dd50d9fc 100644
--- a/sc/source/ui/view/select.cxx
+++ b/sc/source/ui/view/select.cxx
@@ -29,6 +29,7 @@
 #include <tabprotection.hxx>
 #include <markdata.hxx>
 #include <gridwin.hxx>
+#include <sfx2/lokhelper.hxx>
 
 #if defined(_WIN32)
 #define SC_SELENG_REFMODE_UPDATE_INTERVAL_MIN 65
@@ -473,7 +474,9 @@ bool ScViewFunctionSet::SetCursorAtCell( SCCOL nPosX, SCROW 
nPosY, bool bScroll
                 pView->InitRefMode( nPosX, nPosY, pViewData->GetTabNo(), 
SC_REFTYPE_REF );
             }
 
-            pView->UpdateRef( nPosX, nPosY, pViewData->GetTabNo() );
+            if(SfxLokHelper::getDeviceFormFactor() != 
LOKDeviceFormFactor::MOBILE)
+                pView->UpdateRef( nPosX, nPosY, pViewData->GetTabNo() );
+
             pView->SelectionChanged();
         }
     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to