Skip to content

Commit

Permalink
Fix InvisibleButton in customwidget
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenDang committed Sep 4, 2021
1 parent dc87b9d commit 15745f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/customwidget/customwidget.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (c *CircleButtonWidget) Build() {

// Place a invisible button to be a placeholder for events
buttonWidth := float32(radius) * 2
g.InvisibleButton(c.id).Size(buttonWidth, buttonWidth).OnClick(c.clicked).Build()
g.InvisibleButton().Size(buttonWidth, buttonWidth).OnClick(c.clicked).Build()

// If button is hovered
drawActive := g.IsItemHovered()
Expand Down

0 comments on commit 15745f2

Please sign in to comment.