Wednesday, April 18, 2012

Creating a HTML 5 Web App for iPad – Part 2 – Anders Zakrisson – Anders Zakrisson

Creating a HTML 5 Web App for iPad – Part 2 – Anders Zakrisson – Anders Zakrisson: "Touch, Scroll and Swipes
Since  point and drag is used for panning and scrolling there’s no way to use swipes and drags in the default web mode on iOS devices. However, there’s a way to bypass the default touch events and bind your own by adding event listeners for the touchstart, touchmove and touchend events in JavaScript. The first step is to remove the default functionality (pan) when pointing and dragging.

"

'via Blog this'