Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CardealRusso authored Oct 16, 2024
1 parent 2b68833 commit 75c6134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/simple_mouse_drawing.nim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ while app.loop and app.keys[27] == 0:
if app.keys[ord('W')] == 1:
currentColor = rand(uint32)

if app.mouse.click[0] == 1:
if app.mouse.mhold[0] == 1:
let x = clamp(app.mouse.pos.x, 0, app.width)
let y = clamp(app.mouse.pos.y, 0, app.height)
app.pixel(x, y) = currentColor

0 comments on commit 75c6134

Please sign in to comment.