Thread: Slider problems
View Single Post
09-18-13, 03:52 PM   #10
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
I'm not sure what you mean... slider widgets have always run OnValueChanged scripts 498302483242 times a second while the user is dragging the slider. To ignore changes during dragging, and only update when the slider is released, you'd use OnMouseUp instead of OnValueChanged, or check IsMouseButtonDown in your OnValueChanged script and either ignore changes made with a mouse button down, or only pass values to the addon while the mouse button is down if the last value was passed more than X time ago. The only thing that's changed in 5.4 is that the values passed to OnValueChanged scripts while the slider is being dragged no longer respect the slider's step value. Nothing else has changed.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote