fix: Fixed bug for values <1

This commit is contained in:
NunoSempere 2021-11-25 01:29:18 +00:00
parent f7f77b5723
commit 65b670c9d7

View File

@ -223,7 +223,7 @@ export default function Home({ listOfElementsDefault }) {
let nextStepSlider = ({ posList, binaryComparisons, sliderValue, element1, element2 }) => {
if (sliderValue < 1) {
// sliderValue = -sliderValue;
[element1, element2] = [element2, element1]
// [element1, element2] = [element2, element1]
}
console.log(`posList@nextStepSlider:`)
console.log(posList)