--- a/svghmi/widget_input.ysl2 Tue Dec 29 15:35:39 2020 +0100
+++ b/svghmi/widget_input.ysl2 Tue Dec 29 15:37:41 2020 +0100
@@ -9,6 +9,18 @@
this.apply_hmi_value(0, new_val);
+ overshot(new_val, max) { + this.last_display = "max: "+max; + this.request_animate(); + undershot(new_val, min) { + this.last_display = "min: "+min; + this.request_animate(); @@ -35,10 +47,17 @@
- | this.value_elt.textContent = String(value);
+ | this.last_display = value; + | this.request_animate(); + | this.value_elt.textContent = String(this.last_display);