Skip to content
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

Allow moving neighbouring thumbs to accommodate new thumb values (for issue #55) #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Dretch
Copy link

@Dretch Dretch commented Apr 30, 2017

This only addresses the first use case in issue #55.

I don't really understand the second use case: why would you want to allow breaking the min/max/step invariants in this case? I don't see any other situations where it is allowed to break these invariants.

I choose to augment the API to implement this feature by overloading Thumb::setValue with a version taking a "push" flag. This might not be the best approach, especially if use case 2 is needed. It might be better to have differently named methods, or to replace the flag with an enum.

Please let me know what you think. :)

@leokraemer
Copy link

I like the feature. Please consider accepting the pull-request.

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.

2 participants