Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sbr464
· 7y ago · 0 comments
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?
Comments
[–]
yefim
7y ago
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
OP
7y ago
Thanks for sharing.