does changing a slider's max value reset the slider value as well?

hi

i am updating a slider’s max value during runtime
and i am also monitoring the slider value change
the latter precedes the former
but it seems changing the slider’s max value also resets or changes the slider’s value
is this actually the case?

thanks

seems something else is wrong