From dbeab98b54b43756aefa06790e7ea890fa431c5a Mon Sep 17 00:00:00 2001 From: Pranam Lashkari Date: Sat, 9 Jan 2021 20:01:27 +0530 Subject: LOK: stop range selection with mouse/touch move in mobile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0a7b3a5fc89bcbced4acee18415308ed8aa57ba2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109035 Tested-by: Jenkins CollaboraOffice Reviewed-by: Szymon Kłos (cherry picked from commit 408e59359b5b67af119059a5d3f47bc807f81300) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109747 Reviewed-by: Pranam Lashkari --- sc/source/ui/view/select.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sc/source/ui/view/select.cxx b/sc/source/ui/view/select.cxx index 0c4e171cd097..b165234df5c2 100644 --- a/sc/source/ui/view/select.cxx +++ b/sc/source/ui/view/select.cxx @@ -31,6 +31,7 @@ #include #include #include +#include #if defined(_WIN32) #define SC_SELENG_REFMODE_UPDATE_INTERVAL_MIN 65 @@ -475,7 +476,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(); } } -- cgit