Beyond Mouse Events we have Touch events on mobile devices.
Unfortunately, there is NO tap, doubletap, swipe, swipeleft, swiperight, pan, panleft, panright, rotate, pinch, or zoom events.
We DO have touchstart, touchend, touchcancel, and touchmove. These events give us lots of information about where the touches are taking place. We can use this information to write functions that will mimic those other events.
Code GIST: gist.github.com/prof3ssorSt3v...
31 июл 2024