From 736ab13ceb8550840346a8ae710c33ffc6883fbe Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 14 Dec 2023 18:06:07 +0100 Subject: [PATCH] Fix slope input --- src/UI/InputElement/Helpers/SlopeInput.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/UI/InputElement/Helpers/SlopeInput.svelte b/src/UI/InputElement/Helpers/SlopeInput.svelte index 9ae74af514..162f88ca7a 100644 --- a/src/UI/InputElement/Helpers/SlopeInput.svelte +++ b/src/UI/InputElement/Helpers/SlopeInput.svelte @@ -34,12 +34,12 @@ let gamma = new UIEventSource(45) let abs = new UIEventSource(undefined) - let gotMeasurement = false + let gotMeasurement = new UIEventSource(false) let arrowDirection: number = undefined function handleOrientation(event) { - gotMeasurement = true + gotMeasurement.setData(true) // IF the phone is lying flat, then: // alpha is the compass direction (but not absolute) // beta is tilt if you would lift the phone towards you @@ -78,7 +78,7 @@ }, [beta]) -{#if gotMeasurement} +{#if $gotMeasurement}