fixed redraw on mouse position change
This commit is contained in:
parent
24c4d68b0c
commit
8be528e57a
@ -84,7 +84,9 @@ func (s *Screen) onMouseClicked(event *MouseEvent) {
|
|||||||
if s.MouseClicked == nil || !s.MouseClicked(event) {
|
if s.MouseClicked == nil || !s.MouseClicked(event) {
|
||||||
s.Root.OnMouseClicked(event)
|
s.Root.OnMouseClicked(event)
|
||||||
}
|
}
|
||||||
|
if event.Button != MouseButtonNone {
|
||||||
s.Redraw()
|
s.Redraw()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func convertMouseEvent(original *tcell.EventMouse) *MouseEvent {
|
func convertMouseEvent(original *tcell.EventMouse) *MouseEvent {
|
||||||
|
Loading…
Reference in New Issue
Block a user