I recently upgraded to hammer.js 2, and one of the first things I noticed was that hold was replaced with press.
My old code worked fine with event delegation, but going to print seems to work when I put it in a specific element.
Note. I am using hammer.js through jquery plugin
Hammer.js 1
$(element).hammer().on("hold",callback);
Works fine
$(rootElement).hammer().on("hold",".elementSelector",callback);
Works fine
Hammer.js 2
it
$(element).hammer().on("press",callback);
works great and
$(rootElement).hammer().on("press",".elementSelector",callback);
no. The callback never starts.
source
share