[listview] Correctly check if hovered item is highlighted.

issue: 1423
This commit is contained in:
Dave Davenport 2021-09-03 09:32:18 +02:00
parent cb12e6fc05
commit 137417dc6c
1 changed files with 1 additions and 1 deletions

View File

@ -651,7 +651,7 @@ static gboolean listview_element_motion_notify(widget *wid,
unsigned int i;
for (i = 0; i < max && WIDGET(lv->boxes[i].box) != wid; i++) {
}
if (i < max && i != listview_get_selected(lv)) {
if (i < max && (lv->last_offset + i) != listview_get_selected(lv)) {
listview_set_selected(lv, lv->last_offset + i);
}
return TRUE;