summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranam Lashkari <lpranam@collabora.com>2021-01-09 20:01:27 +0530
committerPranam Lashkari <lpranam@collabora.com>2021-02-07 16:29:40 +0100
commit3b7cd120472368730bcdb98d79baf76c9740d16d (patch)
tree5c24e7a283b016d0ac302e55c8bcbd21fc7faed0
parentcf21e70de5cd93d75f780ecd7762bad10605c6e3 (diff)
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 <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> (cherry picked from commit 408e59359b5b67af119059a5d3f47bc807f81300) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110434 Tested-by: Jenkins Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
-rw-r--r--sc/source/ui/view/select.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/ui/view/select.cxx b/sc/source/ui/view/select.cxx
index 6e34ff86a6e8..2ae10a498fc4 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();
}
}