diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-09 06:23:00 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-09 06:23:00 +0300 |
commit | 2e336ab65eae652714daccb14e08026c37bb823f (patch) | |
tree | 26b870688b6191e8461abf9b981ca56c26ca01bd /src/prefs.h | |
parent | 3ba6ccad2b31e0368257b3b073da3caf7d567998 (diff) |
Tuned mouse wheel smooth scrolling
Removed the two-stage acceleration of mouse wheel scrolling in favor of
slightly faster base scrolling speed overall. This makes the behavior
more consistent and predictable.
Diffstat (limited to 'src/prefs.h')
-rw-r--r-- | src/prefs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prefs.h b/src/prefs.h index 58c73bf7..a947a595 100644 --- a/src/prefs.h +++ b/src/prefs.h | |||
@@ -96,5 +96,5 @@ iDeclareTypeConstruction(Prefs) | |||
96 | 96 | ||
97 | iLocalDef float scrollSpeedFactor_Prefs(const iPrefs *d, enum iScrollType type) { | 97 | iLocalDef float scrollSpeedFactor_Prefs(const iPrefs *d, enum iScrollType type) { |
98 | iAssert(type >= 0 && type < max_ScrollType); | 98 | iAssert(type >= 0 && type < max_ScrollType); |
99 | return 10.0f / iMax(1, d->smoothScrollSpeed[type]); | 99 | return 10.0f / iMax(1, d->smoothScrollSpeed[type]) * (type == mouse_ScrollType ? 0.5f : 1.0f); |
100 | } | 100 | } |