diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-07 14:11:27 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-07 14:11:27 +0200 |
commit | 3652671d15ca208b8f1ce23e9ee4e753cb86f1e8 (patch) | |
tree | e63b03ff6ebe32bd7e9331186c7db79a74605783 /src/ui | |
parent | e51267c1c60534a3684e0730c0b3c0fd425765c9 (diff) |
SmoothScroll: Allow overflow scrolling always
This is needed for triggering pull actions.
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/util.c | 9 |
1 files changed, 2 insertions, 7 deletions
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) { | |||
561 | if (destY < -d->overscroll) { | 561 | if (destY < -d->overscroll) { |
562 | destY = -d->overscroll; | 562 | destY = -d->overscroll; |
563 | } | 563 | } |
564 | if (d->max > 0) { | 564 | if (destY >= d->max + d->overscroll) { |
565 | if (destY >= d->max + d->overscroll) { | 565 | destY = d->max + d->overscroll; |
566 | destY = d->max + d->overscroll; | ||
567 | } | ||
568 | } | ||
569 | else { | ||
570 | destY = 0; | ||
571 | } | 566 | } |
572 | if (span) { | 567 | if (span) { |
573 | setValueEased_Anim(&d->pos, destY, span); | 568 | setValueEased_Anim(&d->pos, destY, span); |