diff -r b2ba6eeb61ec -r 21cb76012c78 svghmi/gen_index_xhtml.xslt --- 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 @@ case 0: + this.range = Math.max(1,value); + + break; + + case 1: + this.position = value; break; - case 1: - - this.range = Math.max(1,value); + case 2: + + this.size = value; break; - case 2: - - this.size = value; - - break; - } @@ -5834,7 +5834,7 @@ this.position = Math.round(Math.max(Math.min(position, this.range - this.size), 0)); - this.apply_hmi_value(0, this.position); + this.apply_hmi_value(1, this.position); }