Skip to content

Commit dc4d5fc

Browse files
ItsQuinnMoorerht
authored andcommitted
Update slider to start at 1 FPS.
1 parent 529e73c commit dc4d5fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mesa/visualization/templates/js/runcontrol.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ function ModelController(tick = 0, fps = 3, running = false, finished = false) {
9999
*/
100100
const fpsControl = new Slider("#fps", {
101101
max: 20,
102-
min: 0,
102+
min: 1,
103103
value: controller.fps,
104-
ticks: [0, 20],
105-
ticks_labels: [0, 20],
106-
ticks_position: [0, 100],
104+
ticks: [1, 20],
105+
ticks_labels: [1, 20],
106+
ticks_position: [1, 100],
107107
});
108108
fpsControl.on("change", () => controller.updateFPS(fpsControl.getValue()));
109109

0 commit comments

Comments
 (0)