Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


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


Thanks for sharing.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: