From 8be528e57a00ee353ea0e374dd19c6b97df54f0b Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Mon, 4 Apr 2022 14:23:17 +0200 Subject: [PATCH] fixed redraw on mouse position change --- screen.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/screen.go b/screen.go index 4fed4f7..eb44bb3 100644 --- a/screen.go +++ b/screen.go @@ -84,7 +84,9 @@ func (s *Screen) onMouseClicked(event *MouseEvent) { if s.MouseClicked == nil || !s.MouseClicked(event) { s.Root.OnMouseClicked(event) } - s.Redraw() + if event.Button != MouseButtonNone { + s.Redraw() + } } func convertMouseEvent(original *tcell.EventMouse) *MouseEvent {