fixed redraw on mouse position change

This commit is contained in:
Timon Ringwald 2022-04-04 14:23:17 +02:00
parent 24c4d68b0c
commit 8be528e57a

View File

@ -84,7 +84,9 @@ func (s *Screen) onMouseClicked(event *MouseEvent) {
if s.MouseClicked == nil || !s.MouseClicked(event) {
s.Root.OnMouseClicked(event)
}
if event.Button != MouseButtonNone {
s.Redraw()
}
}
func convertMouseEvent(original *tcell.EventMouse) *MouseEvent {