sc/source/ui/view/tabview.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 74463d44bfe09356dd90248560e5a89898f6f6f7
Author:     Marc Mondesir <timepilot3...@gmail.com>
AuthorDate: Fri Oct 18 15:58:08 2024 -0700
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Wed Oct 30 07:41:59 2024 +0100

    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 <guibomac...@gmail.com>
    (cherry picked from commit 3ac4ea71d8fcd05d73b68397859056a14768dc03)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175747
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

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

Reply via email to