As dealing with touch events using JavaScript can be difficult, a wide variety of libraries have been developed. Examples: Hammer.js, iScroll 4, Swipe.