Skip to content

Commit

Permalink
Update mouse_pos in state
Browse files Browse the repository at this point in the history
  • Loading branch information
tjammer committed Nov 9, 2024
1 parent 275dd89 commit 24faadc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/shapes/shapes_lines_bezier.ml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ let rec loop state =
let { State.line; mouse_pos = _ } = state in
let mouse_pos = get_mouse_position () in
let line = Line.step ~mouse_pos line in
let state = { state with line } in
let state = { State.line; mouse_pos } in
State.draw state;
loop state

Expand Down

0 comments on commit 24faadc

Please sign in to comment.