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

missing step argument and improvements for Number Controllers #47

Closed

Conversation

dionysiusmarquis
Copy link

add(…).min().max().step() does not work for me. For testing purpose use
a starting value of 0. add() will return the NumberControllerSlider and
the following function calls min() max() step() won’t reach the
corresponding NumberControllerBox.

For the shorthand call add(…, min, max, step) was the step argument
missing in the factory.js. This merge request will fix this but the
other bug remains (also see #45).

I Also added some improvements for the Number Controllers in my second commit:
-adds the ability to change the value in the Number box while the controller is listening via .listen().
-Prevents the slider bar from being wider than than 100%.

I'm not sure if document.activeElement.blur() is proper, but it does the trick.

Dennis Markgraf added 2 commits July 19, 2014 13:51
step argument was not provided in factory.js
adds the ability to change the value in the Number box while the
controller is listening via .listen().

Prevents the slider bar from being wider than than 100%.
@dionysiusmarquis dionysiusmarquis changed the title missing step argument missing step argument and improvements for Number Controllers Jul 19, 2014
@wassname
Copy link

Please merge this @doug, if you don't have time then I guess we need more maintainers on this project. It's a great project so I hate to see it in a coma

@customlogic
Copy link
Contributor

Thanks! This fix has been merged into develop 91272ed and will make it to master ASAP

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