I'm not exactly sure how to set the element on which to apply my function in the Hammer.js frame. There in the API itself is passed the following syntax:
var horizontal = new Hammer.Pan({
event: 'panh',
direction: Hammer.DIRECTION_HORIZONTAL
});
var vertical = new Hammer.Pan({
event: 'panv',
direction: Hammer.DIRECTION_VERTICAL
});
vertical.requireFailure(horizontal);
I can not figure out how to apply this code to my project. I would like to have the effects on the document.getElementById('hitArea')
element if this can be useful.