-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slider with an increment fires action even when value doesn't change #1460
Comments
The visual behaviour is also a bit distracting and jerky, at least on OSX 10.10. |
// does this fix it ? if yes, should also apply for EZKnob and EZRanger.
|
come to think of it, maybe it would be best to have a flag for whether
|
the general idea is that setter methods should only have a single argument, so that x.valueAction = y is always possible. |
Sorry, working to a big deadline now, so haven't tested, but I'm not sure about this as an approach. If I call valueAction explicitly (as one might sometimes do), I'd expect the action to fire. |
ok, fair enough.
// good point - valueActionIfChanged also gets rid of the flag, so it follows the single-argument pattern:
BTW, I checked, your example also fires way too often on e.g 3.4.5, so it has likely always been this way. best adc |
What about this:
then you can write:
|
Not so sure about adding an extra slot to every Function. Are we sure btw, that this shouldn't be handled on the Qt side? |
It does not happen on the Qt side, it happens in .sliderView.action // your example with more posting // // sliderView action in EZSlider.sc: best, adc |
Is there any agreement over what is the best solution here? |
IMHO, having an extra method called valueActionIfChanged is a very good solution.
my 2c, adc |
In principle I agree. At least I can't see how it would cause any problem. |
OK, thanks for getting this out of indecision limbo :-) |
Yes I think so. Will you do a PR?
|
ok, how do I do that? (sorry for git incompetence...) |
or is this actually uncontroversial and small enough for just a commit? |
@adcxyz Alberto, have a look at http://supercollider.github.io/contributing/index.html To summarize:
|
You don't need to have a fork even. You can push the branch to the main sc repos, and then do a pull request from there. |
ok, took me a bit to get around to it - here it is. |
Thanks! |
one down, 54 to go ;-) |
Try the following:
They slider fires the action repeatedly with the same value before getting to the new one. I think this is a bug, as it makes sense that the action fires only when the value actually changes, or? Or is there a use case for the current behaviour. Not sure if there are similar issues in other widgets.
The text was updated successfully, but these errors were encountered: