Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sbr464
on March 25, 2019
|
parent
|
context
|
favorite
| on:
You probably don’t need input type=“number”
Kind of a workaround, but if you desired the feature to enable loading the numpad keyboard on mobile or onscreen accessible keyboard, etc, could you possibly override the on-scroll handlers, preventDefault etc?
yefim
on March 25, 2019
[–]
Yep, it's possible. Looks like you need to prevent the default behavior of the wheel event. Here's a quick example I whipped up:
https://codepen.io/yefim/pen/drroer
and here's a 5 year old Stack Overflow answer about it:
https://stackoverflow.com/a/14810932/597260
sbr464
on March 25, 2019
|
parent
[–]
Thanks for sharing.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: