summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarc Mondesir <timepilot3000@gmail.com>2024-10-18 15:58:08 -0700
committerMike Kaganski <mike.kaganski@collabora.com>2024-10-30 07:41:59 +0100
commit74463d44bfe09356dd90248560e5a89898f6f6f7 (patch)
tree3fc293d69f4546b9501abc77a06b21149cc2c1bc /sc
parent0929f196fa939477fb2d591b604f9ec531b17501 (diff)
tdf#119745: Improve horizontal scroll speed in Calc for Windows.
Use a value for horiz scroll reduction on Windows that better suits scroll values from OS. Change-Id: Ie26c32fbed8ffd26094556d87a06d87938e98721 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175187 Tested-by: Jenkins Reviewed-by: Patrick Luby <guibomacdev@gmail.com> (cherry picked from commit 3ac4ea71d8fcd05d73b68397859056a14768dc03) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175747 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/tabview.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 163d220af5e1..e5a1a0d99297 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -1268,7 +1268,11 @@ void ScTabView::ScrollHdl(ScrollAdaptor* pScroll)
// slower than they are used to. If that becomes an
// issue for enough users, the reduction factor may
// need to be lowered to find a good balance point.
+#ifdef _WIN32
+ static const tools::Long nHScrollReductionFactor = 3;
+#else
static const tools::Long nHScrollReductionFactor = 8;
+#endif
// tdf#161945 increase sensitivity for negative horizontal deltas
// A side effect of the anti-jitter code is that it tends