From b0e0160ef5d8624d855d7226529e04c1b37ea05b Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 23 Apr 2021 23:22:45 +0300 Subject: Cleanup --- src/ui/documentwidget.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ui/documentwidget.c') diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index f15d4e3b..88dc18eb 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c @@ -2690,7 +2690,9 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e -3 * amount * lineHeight_Text(paragraph_FontId), smoothDuration_DocumentWidget_ * /* accelerated speed for repeated wheelings */ - (!isFinished_SmoothScroll(&d->scrollY) && pos_Anim(&d->scrollY.pos) < 0.25f ? 0.5f : 1.0f)); + (!isFinished_SmoothScroll(&d->scrollY) && pos_Anim(&d->scrollY.pos) < 0.25f + ? 0.5f + : 1.0f)); scrollWideBlock_DocumentWidget_( d, mouseCoord, -3 * ev->wheel.x * lineHeight_Text(paragraph_FontId), 167); } -- cgit v1.2.3