summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-28 09:43:55 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-28 09:43:55 +0300
commit85bcda3182131cb8dffd3698d725fc6e852f2734 (patch)
treec7315a8741b0ef92b6fd95f3f65f46c589f037fc
parentc970cf6c4cc70bd073487ee920c797e2a16e248c (diff)
ListWidget: Scrolling due to item drag should be linear
-rw-r--r--src/ui/listwidget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/listwidget.c b/src/ui/listwidget.c
index 199121e4..652393ff 100644
--- a/src/ui/listwidget.c
+++ b/src/ui/listwidget.c
@@ -411,6 +411,7 @@ static iBool processEvent_ListWidget_(iListWidget *d, const SDL_Event *ev) {
411 refresh_Widget(d); 411 refresh_Widget(d);
412 } 412 }
413 else { 413 else {
414 setFlags_Anim(&d->scrollY.pos, easeBoth_AnimFlag, iFalse);
414 setValueSpeed_Anim(&d->scrollY.pos, scrollSpeed < 0 ? 0 : scrollMax_ListWidget_(d), 415 setValueSpeed_Anim(&d->scrollY.pos, scrollSpeed < 0 ? 0 : scrollMax_ListWidget_(d),
415 scrollSpeed * scrollSpeed * gap_UI * 400); 416 scrollSpeed * scrollSpeed * gap_UI * 400);
416 refreshWhileScrolling_ListWidget_(d); 417 refreshWhileScrolling_ListWidget_(d);