--- a/svghmi/gen_index_xhtml.xslt Fri Mar 05 09:24:45 2021 +0100
+++ b/svghmi/gen_index_xhtml.xslt Fri Mar 05 09:36:22 2021 +0100
@@ -5748,22 +5748,22 @@
</xsl:text>
<xsl:text> case 0:
</xsl:text>
+ <xsl:text> this.range = Math.max(1,value);
+</xsl:text>
+ <xsl:text> break;
+</xsl:text>
+ <xsl:text> case 1:
+</xsl:text>
<xsl:text> this.position = value;
</xsl:text>
<xsl:text> break;
</xsl:text>
- <xsl:text> case 1:
-</xsl:text>
- <xsl:text> this.range = Math.max(1,value);
+ <xsl:text> case 2:
+</xsl:text>
+ <xsl:text> this.size = value;
</xsl:text>
<xsl:text> break;
</xsl:text>
- <xsl:text> case 2:
-</xsl:text>
- <xsl:text> this.size = value;
-</xsl:text>
- <xsl:text> break;
-</xsl:text>
<xsl:text> }
</xsl:text>
<xsl:text>
@@ -5834,7 +5834,7 @@
</xsl:text>
<xsl:text> this.position = Math.round(Math.max(Math.min(position, this.range - this.size), 0));
</xsl:text>
- <xsl:text> this.apply_hmi_value(0, this.position);
+ <xsl:text> this.apply_hmi_value(1, this.position);
</xsl:text>
<xsl:text> }
</xsl:text>