News for hackers. Stuff that matters.
Re:You probably don’t need input type=“number” by beatgammit on Monday March 25, 2019 @12:38AM (#19480326)
When I'm doing game dev or 3d modeling or something, I often don't care what the values are, I just spin a bit until they look good. The same goes for angles that aren't on a labeled unit circle, percentages, and most other numbers that can reasonably be >30 or so.

Basically, if "close-ish" is acceptable, then a numeric input makes a ton of sense. And that's the case for lots of things, and most of those things wouldn't be entered with a keyboard (unless you want to get the figure in the ballpark).

If the number is <10 or so most of the time, then a menu makes a ton of sense (number of socks), and include a "custom" option so users can enter their own numbers. I do this with all kinds of things that only need a ballpark number but don't benefit from tweaking (e.g. seconds in an internal; basically, if 10 options or so makes sense, just make it a menu).

I happen to work with graphical things that don't need to be precise much of the time but need more precision that a set of presets. But most retail and whatnot apps are not that.

Re:You probably don’t need input type=“number” by thaumasiotes on Monday March 25, 2019 @12:55AM (#19480377)
> that's the case for lots of things, and most of those things wouldn't be entered with a keyboard

I agree with that, but this is an attribute of a text entry field. Like I said, we already have a different widget that accommodates the "I don't care what the value is, but I want to be able to easily fudge it upwards or downwards" use case.

Re:You probably don’t need input type=“number” by zeroimpl on Monday March 25, 2019 @09:42AM (#19482313)
Is there an <input type=“scrollbar”/>?

Also, input does not necessarily mean text entry. We have <input type=“checkbox”/> and <input type=“button”/> among others.

Re:You probably don’t need input type=“number” by yorwba on Monday March 25, 2019 @09:49AM (#19482357)
I'm not sure what you mean by "scrollbar" input, but maybe <input type="range"> fits?