fixed redraw on mouse position change
This commit is contained in:
parent
24c4d68b0c
commit
8be528e57a
@ -84,8 +84,10 @@ 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 {
|
||||
x, y := original.Position()
|
||||
|
Loading…
Reference in New Issue
Block a user