I need to understand how can I stop an event propagation, in particular the "change" propagation of a slider. normally, in my application, change is called when
- I move the slider directly on the bar;
- I change the slider position with this command
$("#idPlayerSlider").slider("value", nNewPosition);
somewhere in my code.
this is the slider:
$("#idPlayerSlider").slider({
orientation: "horizontal",
range: "min",
max: nPlayerTime,
value: PLAYER_VIEW.TIMESTAMP_TOTAL,
change: seekPlayerVideo
});
this is the operation I do to change the slider value:
$("#idPlayerSlider").slider("value", nNewPosition);
the question is: is there a way to stop change propagation when I set the new value of the slider? because I need the change callback is called when I move it on the real slider, but if I force a new value i would like this callback is not called anymore. so the need is to stop its propagation. how can I do? thank you in advance.