Only animate when textbox has focus.
This commit is contained in:
parent
8560204c39
commit
0c399a8d93
@ -138,7 +138,9 @@ func (b *TextBox) Handle(ctx Context, e Event) bool {
|
|||||||
}
|
}
|
||||||
ctx.Renderer().SetMouseCursor(MouseCursorText)
|
ctx.Renderer().SetMouseCursor(MouseCursorText)
|
||||||
}
|
}
|
||||||
|
if b.Focus {
|
||||||
ctx.Animate()
|
ctx.Animate()
|
||||||
|
}
|
||||||
|
|
||||||
switch e := e.(type) {
|
switch e := e.(type) {
|
||||||
case *MouseButtonDownEvent:
|
case *MouseButtonDownEvent:
|
||||||
|
Loading…
Reference in New Issue
Block a user