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:
parent
e4c497cc59
commit
5cae504299
2
list.go
2
list.go
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user