diff options
author | Marc Mondesir <timepilot3000@gmail.com> | 2024-10-18 15:58:08 -0700 |
---|---|---|
committer | Patrick Luby <guibomacdev@gmail.com> | 2024-10-24 22:57:28 +0200 |
commit | 3ac4ea71d8fcd05d73b68397859056a14768dc03 (patch) | |
tree | 005c9c60005b519f11a0e8c14dd6c560baa17711 /sc/source/ui/view/tabview.cxx | |
parent | d8f71364a582e39a2fb04a09c9ae1bf8470c43c4 (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>
Diffstat (limited to 'sc/source/ui/view/tabview.cxx')
-rw-r--r-- | sc/source/ui/view/tabview.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx index 36802c39168b..9088af8a6e24 100644 --- a/sc/source/ui/view/tabview.cxx +++ b/sc/source/ui/view/tabview.cxx @@ -1291,7 +1291,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 |