summaryrefslogtreecommitdiff
path: root/src/ui/listwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-07 20:17:19 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-07 20:17:19 +0300
commit4e5396ec75a98463a91ed99523ae76ccb247bdd2 (patch)
tree3406af5c08cc12cd8f5954de1f03c0f7023d3728 /src/ui/listwidget.c
parentc7b55f3d2ead592e110a1a1fb219bcb5a9009b37 (diff)
ListWidget: Clear hover on scroll
Diffstat (limited to 'src/ui/listwidget.c')
-rw-r--r--src/ui/listwidget.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/listwidget.c b/src/ui/listwidget.c
index 3e7203b8..d021543c 100644
--- a/src/ui/listwidget.c
+++ b/src/ui/listwidget.c
@@ -172,7 +172,10 @@ void scrollOffset_ListWidget(iListWidget *d, int offset) {
172 const int scrollMax = scrollMax_ListWidget_(d); 172 const int scrollMax = scrollMax_ListWidget_(d);
173 d->scrollY = iMin(d->scrollY, scrollMax); 173 d->scrollY = iMin(d->scrollY, scrollMax);
174 if (oldScroll != d->scrollY) { 174 if (oldScroll != d->scrollY) {
175 d->hoverItem = iInvalidPos; 175 if (d->hoverItem != iInvalidPos) {
176 invalidateItem_ListWidget(d, d->hoverItem);
177 d->hoverItem = iInvalidPos;
178 }
176 updateVisible_ListWidget(d); 179 updateVisible_ListWidget(d);
177 d->visBufferValid = partial_BufferValidity; 180 d->visBufferValid = partial_BufferValidity;
178 refresh_Widget(as_Widget(d)); 181 refresh_Widget(as_Widget(d));