We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb5d67a commit e750bb6Copy full SHA for e750bb6
src/TrainSimulator.js
@@ -22,14 +22,17 @@ function useSimulation() {
22
23
function handleSpeedChange(event) {
24
setSpeed(parseInt(event.target.value));
25
+ startSimulation();
26
}
27
28
function handleThrottleChange(event) {
29
setThrottle(parseInt(event.target.value));
30
31
32
33
function handlePressureChange(event) {
34
setPressure(parseInt(event.target.value));
35
36
37
38
return {
0 commit comments