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}