Tuesday, January 03, 2012

Touching and Gesturing on iPhone, Android, and More

Touching and Gesturing on iPhone, Android, and More: "Drag and drop with the Touch API
Creating drag and drop functionality on touchscreen devices is made easier due to the fact that touchmove events only fire when a finger is already touching the screen’s surface. This means we don’t need to track button states like we would with a mousemove event. A basic drag and drop implementation, then, can look as simple as this:"

'via Blog this'