2
0
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:
Oliver 2021-05-29 11:36:04 +02:00
parent c24a22db24
commit 435b99e1df

View File

@ -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
}