Skip to content

Commit

Permalink
Linter linter linter LINTER >_<
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbrigato committed Jan 12, 2025
1 parent 6260aad commit 8df2c15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/transparent/transparent.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ func FramelessMovableWidget(widget g.Widget) *g.CustomWidget {
isMovingFrame = false
return
}

widget.Build()

if g.IsItemHovered() {
if g.IsMouseDown(g.MouseButtonLeft) {
isMovingFrame = true
}
}

if isMovingFrame {
delta := imgui.CurrentIO().MouseDelta()
dx := int(delta.X)
Expand Down

0 comments on commit 8df2c15

Please sign in to comment.