From deac62d1e2cd20348b87397ce2f9af0ab67d32a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= Date: Sat, 28 Nov 2020 19:27:06 +0200 Subject: [PATCH 1/1] DocumentWidget: Inverted horizontal mouse wheel direction --- src/ui/documentwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 /* accelerated speed for repeated wheelings */ (!isFinished_Anim(&d->scrollY) && pos_Anim(&d->scrollY) < 0.25f ? 0.5f : 1.0f)); scrollWideBlock_DocumentWidget_( - d, mouseCoord, ev->wheel.x * lineHeight_Text(paragraph_FontId) * 3, 167); + d, mouseCoord, -ev->wheel.x * lineHeight_Text(paragraph_FontId) * 3, 167); } iChangeFlags(d->flags, noHoverWhileScrolling_DocumentWidgetFlag, iTrue); return iTrue; -- 2.34.1