Is there an easy JavaScript method that works across different devices and libraries?
I am looking to assign a class to the html element in order to enable scrollable containers on mobile devices when needed.
I want to follow a similar approach to Modernizr, where feature support is detected instead of relying on browser detection. However, I prefer not to use the entire Modernizr framework as I am aiming for lightweight JavaScript for a mobile project.
Thank you!