Skip to content

Commit

Permalink
Make Panel capture mouse too
Browse files Browse the repository at this point in the history
  • Loading branch information
unitoftime committed Mar 26, 2024
1 parent dcc8251 commit ffc1080
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,9 @@ func removeDedup(label string) string {
}

func (g *Group) Panel(sprite Drawer, rect glitch.Rect, color glitch.RGBA) {
ss := SpriteStyle{sprite, color}
g.drawSprite(rect, ss)
// ss := SpriteStyle{sprite, color}
// g.drawSprite(rect, ss)
g.HoverPanel(sprite, rect, color)
}

func (g *Group) Hovered(rect glitch.Rect) bool {
Expand Down

0 comments on commit ffc1080

Please sign in to comment.