1
0
mirror of https://github.com/rivo/tview.git synced 2025-04-26 13:49:06 +08:00

Update list.go

mouse click no need adjust offset. adjust offset will cause listbox  jump to wrong place
This commit is contained in:
wellcomez 2024-10-25 15:20:39 +08:00 committed by GitHub
parent e4c497cc59
commit 5cae504299
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -710,7 +710,7 @@ func (l *List) MouseHandler() func(action MouseAction, event *tcell.EventMouse,
if l.changed != nil { if l.changed != nil {
l.changed(index, item.MainText, item.SecondaryText, item.Shortcut) l.changed(index, item.MainText, item.SecondaryText, item.Shortcut)
} }
l.adjustOffset() //l.adjustOffset()
} }
l.currentItem = index l.currentItem = index
} }