Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into upgrade-cimgui-go
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Oct 29, 2024
2 parents a3fc6ed + 2901ab3 commit 99fdb27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImageWidgets.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (i *ImageWidget) Build() {
}

// trick: detect click event
if i.onClick != nil && IsMouseClicked(MouseButtonLeft) && IsWindowFocused(0) {
if i.onClick != nil && IsMouseClicked(MouseButtonLeft) && IsWindowHovered(0) {
cursorPos := GetCursorScreenPos()
mousePos := GetMousePos()

Expand Down

0 comments on commit 99fdb27

Please sign in to comment.