Error in slider mapping

When I call the setRange method a second time while the plugin is running, I get a different set of values coming from sliderPos (from drawRotarySlider (LookAndFeel_V4).
In the first call, when the slider is initialized I get these values coming from
drawRotarySlider when I insert a value that is half the full range
(i.e. if the range is between 0 and 2000, this is what I get if I input 1000):

rotaryStartAngle: 3.76991
rotaryEndAngle: 8.79646
sliderPos: 0.49975

after I “update” the range I get these other values:
rotaryStartAngle: 3.76991
rotaryEndAngle: 8.79646
sliderPos: 0.776423

I tried calling the setRange method using the exact same values used during initialization and I still get this different output.

Is this supposed to be a normal behaviour or is it a bug? :thinking: