mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
scroll to top when unselecting
This commit is contained in:
parent
74d2fbe833
commit
b98ce54750
@ -80,7 +80,7 @@ func (widget *Widget) Prev() {
|
||||
|
||||
func (widget *Widget) Unselect() {
|
||||
widget.Selected = -1
|
||||
widget.View.Highlight(strconv.Itoa(widget.Selected)).ScrollToHighlight()
|
||||
widget.View.ScrollToBeginning()
|
||||
}
|
||||
|
||||
func (widget *Widget) Refresh() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user