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

[feature request] Use input type "number" on numbers #81

Open
christian-byrne opened this issue Aug 21, 2024 · 0 comments
Open

[feature request] Use input type "number" on numbers #81

christian-byrne opened this issue Aug 21, 2024 · 0 comments

Comments

@christian-byrne
Copy link
Contributor

Originally from comfyanonymous/ComfyUI#1612:

Whenever you double click a numeric value to show the popup dialog to manually set it, the input type is text, which means you don't get the native up/down arrows and scroll wheel does nothing.

Switching those inputs to type="number" and adding step="0.05" would show the arrows, and allow keyboard up/down arrows > and mouse wheel to change the value in 0.05 increments/decrements. Also, min and max attributes can limit the values > whenever needed. Having to manually type values while you could use the mouse wheel to change them is rather cumbersome.

Input type number on MDN

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

No branches or pull requests

1 participant