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) } }