I just published my first NPM package! Itโs something Iโve wanted to do for a while, but Iโve never really had to build anything in Javascript that wasnโt too specific to launch as a package. Until now.
Touch Handler ๐
This package is a simple Javascript class that wraps around 4 Touch Events: touchstart
, touchend
, touchcancel
, and touchmove
.
The class allows for a developer to add 3 functions that will be called when a user touches, swipes, and releases on a particular element. Those functions provide access to the X and Y coordinates of that touch.
Download the package
The package is available on NPM, or GitHub. Contributions are also welcome ๐.