From 6edb94f5a51a86e6122b02391c3200a98b645c7c Mon Sep 17 00:00:00 2001 From: David North Date: Mon, 24 Jul 2023 21:48:11 +0100 Subject: [PATCH] Updates hello-indigo docs with a different match for MouseEvent.Click --- indigo/docs/quickstart/hello-indigo.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indigo/docs/quickstart/hello-indigo.md b/indigo/docs/quickstart/hello-indigo.md index 6b5d613ed..9b34ca021 100644 --- a/indigo/docs/quickstart/hello-indigo.md +++ b/indigo/docs/quickstart/hello-indigo.md @@ -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(