Skip to content

Instantly share code, notes, and snippets.

@courgette
courgette / gist:5003591
Created February 21, 2013 09:55 — forked from opi/gist:5003488
/**
* Touch events
*/
// wrapper is a DOM element
wrapper.touch = {}
wrapper.get(0).ontouchstart = function(e) {
// Store start position
wrapper.touch.x = e.touches[0].clientX;
};