I’m making a custom vertical slider by overriding the
drawLinearSlider method in
I need to find a way to set the distance that the slider must travel to reach the maximum value.
As shown above the rectangle i’m using for the thumb starts in the right place but to reach the max value (127) it must move beyond the outer rectangle. I would like to find some way to constrain the distance between min and max values such that the max value was at the position shown in the above picture at Nr 3.
Can it be done?