You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I created a modal that tells me what's the minimum I can reach (min), maximum I can reach (max), minimum current value (thumbs[0].value) and maximum current value (thumbs[1].value).
I wasn't aware about the order, but I was doing the following:
multiSlider.min = filterModel.minPrice!!.toInt()
multiSlider.max = filterModel.maxPrice!!.toInt()
in case min = 2, max = 2000, minimumCurrent = 200 and maximumCurrent = 1000 it was setting the minimumCurrent to 100 because the maximum is updated later and 200 would be greater than the max of the thumb.
I believe there should be a method for better understanding, code clean and etcetera that for 2 thumbs, you can set all these 4 vars.
The solution for me was doing it the opposite way:
Hello, I created a modal that tells me what's the minimum I can reach (
min
), maximum I can reach (max
), minimum current value (thumbs[0].value
) and maximum current value (thumbs[1].value
).I wasn't aware about the order, but I was doing the following:
multiSlider.min = filterModel.minPrice!!.toInt()
multiSlider.max = filterModel.maxPrice!!.toInt()
which makes sense
in case
min = 2
,max = 2000
,minimumCurrent = 200
andmaximumCurrent = 1000
it was setting theminimumCurrent
to100
because the maximum is updated later and200
would be greater than themax
of the thumb.I believe there should be a method for better understanding, code clean and etcetera that for 2 thumbs, you can set all these 4 vars.
The solution for me was doing it the opposite way:
The text was updated successfully, but these errors were encountered: