I have written a music player that uses the slider to show how much of the track has been played. As the slider is updated by the player with the played time of the track, I have to stop this update from happening if the user grabs the slider control or clicks the slider. In the case of the user clicking elsewhere on the slider the Change event is fine but if the user grabs the slider control then the change fires as the control is moved. This means that the process that updates the slider for the played time is turned on, hence causing multiple position updates and major confusion. Therefore the correct place for me to turn back on the played process is when the user releases the mouse button i.e. onMouseUp.
I have tried the dragEnd and this does not fire. I have check the event sequence and when you click on the slider the event sequence is Slider onMouseDown, Slider OnMouseUp, main widget onMouseUp and then the Slider change event. However when you grab the slider control (i.e. the little knob) you get Slider onMouseDown and the Changed event. The onMouseUp event does not fire for the slider or the widget it is contained in. I have been really careful to ensure that the mouse is released whilst still over the slider. Also VERY strangely if you grab the slider control using the right mouse button then the even sequence is correct i.e. Slider onMouseDown, Slider OnMouseUp, main widget onMouseUp and then the Slider change event.
This is causing me a major issue, can somebody please help.