summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-11-28 19:27:06 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-11-28 19:27:06 +0200
commitdeac62d1e2cd20348b87397ce2f9af0ab67d32a3 (patch)
tree2abd35cb98e6cdf67b63d16f6d37d597d4dfc638 /src
parentdd58c9feb85b113a8b66f4466ce8121a2d592df6 (diff)
DocumentWidget: Inverted horizontal mouse wheel direction
Diffstat (limited to 'src')
-rw-r--r--src/ui/documentwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 78036ef1..cd2dd14a 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -2151,7 +2151,7 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e
2151 /* accelerated speed for repeated wheelings */ 2151 /* accelerated speed for repeated wheelings */
2152 (!isFinished_Anim(&d->scrollY) && pos_Anim(&d->scrollY) < 0.25f ? 0.5f : 1.0f)); 2152 (!isFinished_Anim(&d->scrollY) && pos_Anim(&d->scrollY) < 0.25f ? 0.5f : 1.0f));
2153 scrollWideBlock_DocumentWidget_( 2153 scrollWideBlock_DocumentWidget_(
2154 d, mouseCoord, ev->wheel.x * lineHeight_Text(paragraph_FontId) * 3, 167); 2154 d, mouseCoord, -ev->wheel.x * lineHeight_Text(paragraph_FontId) * 3, 167);
2155 } 2155 }
2156 iChangeFlags(d->flags, noHoverWhileScrolling_DocumentWidgetFlag, iTrue); 2156 iChangeFlags(d->flags, noHoverWhileScrolling_DocumentWidgetFlag, iTrue);
2157 return iTrue; 2157 return iTrue;