diff options
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); |