Skip to content

Commit 1bcf37a

Browse files
authored
Merge pull request #663 from ccnmtl/limitcorr
Limit correlation
2 parents a89d877 + 203e203 commit 1bcf37a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

media/js/src/simulations/simulation1/simulationOne.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ export const SimulationOne = () => {
234234
<input
235235
type="range"
236236
step="0.01"
237-
min="-1"
238-
max="1" value={yCorrelation}
237+
min="-0.999"
238+
max="0.999" value={yCorrelation}
239239
className="form-range"
240240
id="correlation"
241241
disabled={lockControls}
@@ -272,8 +272,8 @@ export const SimulationOne = () => {
272272
<input
273273
type="range"
274274
step="0.01"
275-
min="-1"
276-
max="1" value={xCorrelation}
275+
min="-0.999"
276+
max="0.999" value={xCorrelation}
277277
className="form-range"
278278
id="correlation"
279279
disabled={lockControls}

0 commit comments

Comments
 (0)