From 74463d44bfe09356dd90248560e5a89898f6f6f7 Mon Sep 17 00:00:00 2001 From: Marc Mondesir Date: Fri, 18 Oct 2024 15:58:08 -0700 Subject: 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 (cherry picked from commit 3ac4ea71d8fcd05d73b68397859056a14768dc03) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175747 Reviewed-by: Mike Kaganski --- sc/source/ui/view/tabview.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sc') 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 -- cgit