diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-28 09:43:55 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-28 09:43:55 +0300 |
commit | 85bcda3182131cb8dffd3698d725fc6e852f2734 (patch) | |
tree | c7315a8741b0ef92b6fd95f3f65f46c589f037fc /src/ui | |
parent | c970cf6c4cc70bd073487ee920c797e2a16e248c (diff) |
ListWidget: Scrolling due to item drag should be linear
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/listwidget.c | 1 |
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); |