mirror of
https://github.com/rivo/tview.git
synced 2024-11-15 06:12:46 +00:00
Mouse scrolling on TreeView scrolls instead of selecting nodes. Fixes #607
This commit is contained in:
parent
c24a22db24
commit
435b99e1df
@ -810,10 +810,10 @@ func (t *TreeView) MouseHandler() func(action MouseAction, event *tcell.EventMou
|
||||
}
|
||||
consumed = true
|
||||
case MouseScrollUp:
|
||||
t.movement = treeUp
|
||||
t.offsetY--
|
||||
consumed = true
|
||||
case MouseScrollDown:
|
||||
t.movement = treeDown
|
||||
t.offsetY++
|
||||
consumed = true
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user