fix: Fixed bug for values <1
This commit is contained in:
parent
f7f77b5723
commit
65b670c9d7
|
@ -223,7 +223,7 @@ export default function Home({ listOfElementsDefault }) {
|
||||||
let nextStepSlider = ({ posList, binaryComparisons, sliderValue, element1, element2 }) => {
|
let nextStepSlider = ({ posList, binaryComparisons, sliderValue, element1, element2 }) => {
|
||||||
if (sliderValue < 1) {
|
if (sliderValue < 1) {
|
||||||
// sliderValue = -sliderValue;
|
// sliderValue = -sliderValue;
|
||||||
[element1, element2] = [element2, element1]
|
// [element1, element2] = [element2, element1]
|
||||||
}
|
}
|
||||||
console.log(`posList@nextStepSlider:`)
|
console.log(`posList@nextStepSlider:`)
|
||||||
console.log(posList)
|
console.log(posList)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user