Skip to content

Commit

Permalink
fix: Remove clicking on simulation speed labels to toggle [PT-187393324]
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmartin committed Apr 9, 2024
1 parent 59ee871 commit 7e2b140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/speed-toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const SpeedToggle = ({fastSimulation, onChange}: Props) => {
<div className="speedToggle">
<label htmlFor="simulationSpeed">Simulation Speed:</label>
<div>
<div style={getStyle(!fastSimulation)} onClick={() => onChange(false)}>Normal</div>
<div style={getStyle(!fastSimulation)}>Normal</div>
<input
id="simulationSpeed"
className="slider"
Expand All @@ -28,7 +28,7 @@ export const SpeedToggle = ({fastSimulation, onChange}: Props) => {
checked={fastSimulation}
onChange={handleChange}
/>
<div style={getStyle(fastSimulation)} className="fast" onClick={() => onChange(true)}>Fast</div>
<div style={getStyle(fastSimulation)} className="fast">Fast</div>
</div>
</div>
);
Expand Down

0 comments on commit 7e2b140

Please sign in to comment.