copy from hammer.js/gh-pages-2.0