Skip to content

Commit

Permalink
Updates hello-indigo docs with a different match for MouseEvent.Click
Browse files Browse the repository at this point in the history
  • Loading branch information
hobnob committed Jul 24, 2023
1 parent 289eb79 commit 6edb94f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion indigo/docs/quickstart/hello-indigo.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ def updateModel(
context: FrameContext[Unit],
model: Model
): GlobalEvent => Outcome[Model] = {
case MouseEvent.Click(clickPoint, _, _, _, _, _, _, _) =>
case e: MouseEvent.Click =>
val clickPoint = e.position
val adjustedPosition = clickPoint - model.center

Outcome(
Expand Down

0 comments on commit 6edb94f

Please sign in to comment.