diff --git a/ui/textbox.go b/ui/textbox.go index f87763e..e174aad 100644 --- a/ui/textbox.go +++ b/ui/textbox.go @@ -138,7 +138,9 @@ func (b *TextBox) Handle(ctx Context, e Event) bool { } ctx.Renderer().SetMouseCursor(MouseCursorText) } - ctx.Animate() + if b.Focus { + ctx.Animate() + } switch e := e.(type) { case *MouseButtonDownEvent: