http://www.html5gamedevs.com/topic/5449-directional-swipe/#entry32863