From 2f5f682a5928a7c604480aba69c7c00cb517d78d Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Sat, 23 May 2020 12:36:44 +0200 Subject: [PATCH] Fixed bug where hovering a buy flower button wasn't visualized properly. --- iconbutton.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iconbutton.go b/iconbutton.go index 30bdb88..afc4cff 100644 --- a/iconbutton.go +++ b/iconbutton.go @@ -41,7 +41,7 @@ func (b *IconButton) Render(ctx ui.Context) { } func (b *IconButton) RenderActive(ctx ui.Context) { - if b.Active && !b.Disabled && !b.IsOver() { + if b.Active || (!b.Disabled && b.IsOver()) { ctx.Renderer().FillRectangle(b.Bounds(), hoverTransparentColor) } }