summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-18 14:05:58 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-18 14:05:58 +0300
commit6bad5bc26bd472dc79158cc76fa32fa85b633926 (patch)
tree7352d7d22fbcbfbbb6571fdbafd0e31fb5463df3
parent9e40dca30b0c1e61b0ded4725b7db4f225684e2a (diff)
DocumentWidget: Adjusted mouse wheel scroll amount
-rw-r--r--src/ui/documentwidget.c4
1 files 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
1516 } 1516 }
1517 smoothScroll_DocumentWidget_( 1517 smoothScroll_DocumentWidget_(
1518 d, 1518 d,
1519 -3 * ev->wheel.y * lineHeight_Text(default_FontId), 1519 -3 * ev->wheel.y * lineHeight_Text(paragraph_FontId),
1520 gap_UI * smoothSpeed_DocumentWidget_ + 1520 gap_Text * smoothSpeed_DocumentWidget_ +
1521 (isSmoothScrolling_DocumentWidget_(d) ? d->smoothSpeed : 0)); 1521 (isSmoothScrolling_DocumentWidget_(d) ? d->smoothSpeed : 0));
1522#endif 1522#endif
1523 d->noHoverWhileScrolling = iTrue; 1523 d->noHoverWhileScrolling = iTrue;