issues with slider: slider value returns to zero

i see in a previous widget with sliders i combined and implemented both slider events: on value change and mouse capture lost

i think that is perhaps what kept a weird value at the end
and it gives both dynamism and stability

otherwise only using on mouse capture lost is also ok ish