Is it necessary any code placed in creationComplete to be able to call it's event's?
I've been trying this code and then publish t and import the html article to Indesign Folio, but the swipe u and down don't work.
yepnope({
nope:['edge_includes/hammer.js'] ,
complete: init
});
function init (){
var element = sym.element[0];
var hammer = Hammer(element);
hammer.on("swipeup", function(event) {
sym.play(0);
});
hammer.on("swipedown", function(event) {
sym.play(0);
});
}
What my I be doing wrong?