Reply To: Multi User – PIN CHANGE Event
I also found a small bug in your example. The slider does not go back to 0 after changing it, but to 0.5 (0 for some reason becomes the next value when you drag it one step to the right). The solution can be found here:
Specifically the comment to the answer:
Actually, there’s a subtle difference in all this (I just ran into this myself). You should use “ui.value” to get the value in your slide event handler. That will give you the current value. You will get the previous value if you fetch it by asking the slider for its handle value (e.g. .slider(‘value’) or .slider(‘option’, ‘value’), etc.). This matters if you are trying to say dynamically update a label while the user is sliding the handle around. Summarizing: if you use ui.value to get the value in the slide event handler, you won’t need to use a stop event handler.