Skip to content

Stacking #245

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Stacking #245

wants to merge 5 commits into from

Conversation

HaykoKoryun
Copy link

added two new functions:
bounds which checks to see if the event was within the circular bounds of the knob
propagate which propagates the event to any other elements underneath the canvas, really useful for stacking knobs

bound a listener for an `update` event which calls the `val` method with the second param as `false` so as not to trigger the release handler.
this is useful when we create a knob that we update periodically as well expect the user to interact with at the same time e.g. an audio scrubber which shows the track progress which you can change as well.
added a `scrubbing` flag which prevents the `val` function from overwriting the `cv` variable when the user is scrubbing, this stops a flickering issue when the user is scrubbing but the `val` get's updated in the processes temporarily when the `cv` value gets overwritten.
added triggering of change handler when using mouse wheel to change values
@aterrien
Copy link
Owner

I'm about to merge these features (about "scrubbing" flag, it's more clear for me now:)) and it would be nice if you could add some lines in README.md and an example in index.html.

@ACXgit
Copy link

ACXgit commented Nov 15, 2014

+1 for both pull requests, expecially for the "scrubbling" one. I already tested its integration in RuneAudio's UI and it works as expected. Great work @HaykoKoryun!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants