Working on the hammer.js event handling