From 3652671d15ca208b8f1ce23e9ee4e753cb86f1e8 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 7 Dec 2021 14:11:27 +0200 Subject: SmoothScroll: Allow overflow scrolling always This is needed for triggering pull actions. --- src/ui/util.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/ui/util.c') diff --git a/src/ui/util.c b/src/ui/util.c index 5a957b47..097eb548 100644 --- a/src/ui/util.c +++ b/src/ui/util.c @@ -561,13 +561,8 @@ void moveSpan_SmoothScroll(iSmoothScroll *d, int offset, uint32_t span) { if (destY < -d->overscroll) { destY = -d->overscroll; } - if (d->max > 0) { - if (destY >= d->max + d->overscroll) { - destY = d->max + d->overscroll; - } - } - else { - destY = 0; + if (destY >= d->max + d->overscroll) { + destY = d->max + d->overscroll; } if (span) { setValueEased_Anim(&d->pos, destY, span); -- cgit v1.2.3