summaryrefslogtreecommitdiff
path: root/src/prefs.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-09 06:23:00 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-09 06:23:00 +0300
commit2e336ab65eae652714daccb14e08026c37bb823f (patch)
tree26b870688b6191e8461abf9b981ca56c26ca01bd /src/prefs.h
parent3ba6ccad2b31e0368257b3b073da3caf7d567998 (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.h2
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
97iLocalDef float scrollSpeedFactor_Prefs(const iPrefs *d, enum iScrollType type) { 97iLocalDef 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}