Fixed mouse focus issue in List. Fixes #773

This commit is contained in:
Oliver 2022-11-28 09:29:18 +01:00
parent f5cddba6f0
commit 1480dc5b05
1 changed files with 1 additions and 1 deletions

View File

@ -713,6 +713,7 @@ func (l *List) MouseHandler() func(action MouseAction, event *tcell.EventMouse,
}
l.currentItem = index
}
setFocus(l)
consumed = true
case MouseScrollUp:
if l.itemOffset > 0 {
@ -727,7 +728,6 @@ func (l *List) MouseHandler() func(action MouseAction, event *tcell.EventMouse,
if _, _, _, height := l.GetInnerRect(); lines > height {
l.itemOffset++
}
setFocus(l)
consumed = true
}