diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-23 23:22:45 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-23 23:22:59 +0300 |
commit | b0e0160ef5d8624d855d7226529e04c1b37ea05b (patch) | |
tree | 2e088790bf2509ef4aa493fb6795fd982d54ddea /src/ui/documentwidget.c | |
parent | 480f3b7e9526d2219267d5426a7c997574846d59 (diff) |
Cleanup
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
2690 | -3 * amount * lineHeight_Text(paragraph_FontId), | 2690 | -3 * amount * lineHeight_Text(paragraph_FontId), |
2691 | smoothDuration_DocumentWidget_ * | 2691 | smoothDuration_DocumentWidget_ * |
2692 | /* accelerated speed for repeated wheelings */ | 2692 | /* accelerated speed for repeated wheelings */ |
2693 | (!isFinished_SmoothScroll(&d->scrollY) && pos_Anim(&d->scrollY.pos) < 0.25f ? 0.5f : 1.0f)); | 2693 | (!isFinished_SmoothScroll(&d->scrollY) && pos_Anim(&d->scrollY.pos) < 0.25f |
2694 | ? 0.5f | ||
2695 | : 1.0f)); | ||
2694 | scrollWideBlock_DocumentWidget_( | 2696 | scrollWideBlock_DocumentWidget_( |
2695 | d, mouseCoord, -3 * ev->wheel.x * lineHeight_Text(paragraph_FontId), 167); | 2697 | d, mouseCoord, -3 * ev->wheel.x * lineHeight_Text(paragraph_FontId), 167); |
2696 | } | 2698 | } |