useful.interactions.js can be very useful for developers working on responsive websites that will render on both desktop and mobile mediums.
It unifies mouse and touch interactions, allowing developers to write single functions that handle these gestures and avoid having duplicate code that deals with the same thing, only one time for desktops and the second time for mobiles.
The library is quite easy to use and comes with functions that can log when interactions start, end, how much they move, and special mouse wheel events.
Installation instructions are provided with the package's README file and if you need a demonstration, the useful.interactions.js includes a sample page as well.
Requirements:
- JavaScript enabled on client side
Comments not found