svghmi/gen_index_xhtml.xslt
branchsvghmi
changeset 3178 21cb76012c78
parent 3175 b2ba6eeb61ec
child 3181 50d0fef791d5
--- a/svghmi/gen_index_xhtml.xslt	Tue Mar 02 17:30:13 2021 +0100
+++ b/svghmi/gen_index_xhtml.xslt	Wed Mar 03 11:45:13 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>