Showing 1 changed files with 4 additions and 0 deletions
+4
Nasal/knobs.nas
... ...
@@ -91,6 +91,10 @@ var knobsClass = {
91 91
                     break;
92 92
                 }
93 93
             v += d * (contains(object, 'factor') ? object.factor : 1);
94
+            if (contains(object, 'range'))
95
+                if ((contains(object.range, 'max') and v > object.range.max)
96
+                or  (contains(object.range, 'min') and v < object.range.min))
97
+                    return;
94 98
             val = sprintf(object.format, v);
95 99
             me.device.windows.window[me.device.windows.selected]
96 100
                 .setText(val);