From 6bad5bc26bd472dc79158cc76fa32fa85b633926 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 18 Sep 2020 14:05:58 +0300 Subject: DocumentWidget: Adjusted mouse wheel scroll amount --- src/ui/documentwidget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 33b419c8..f54b1e3a 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c @@ -1516,8 +1516,8 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e } smoothScroll_DocumentWidget_( d, - -3 * ev->wheel.y * lineHeight_Text(default_FontId), - gap_UI * smoothSpeed_DocumentWidget_ + + -3 * ev->wheel.y * lineHeight_Text(paragraph_FontId), + gap_Text * smoothSpeed_DocumentWidget_ + (isSmoothScrolling_DocumentWidget_(d) ? d->smoothSpeed : 0)); #endif d->noHoverWhileScrolling = iTrue; -- cgit v1.2.3