Disable swipe on SpriteSpin

Saturday, July 5, 2014

Is it possible to disable sipe with this module http://ift.tt/1iSG2zR ? I have tried all to supply empty functions for all of these. But it dooesnt work and is hard to debug.



function click(e) {
console.log("click");
e.preventDefault();
return false;
}


SpriteSpin.registerModule('nodrag', {

/* mousedown: click,
mousemove: click,
mouseup: click,
mouseleave: click,
mouseover: click,

dblclick: click,


touchend: click,
touchstart: click,
touchmove: click,
touchcancel: click,

selectstart :click,
gesturestart: click,
gesturechange: click,
gestureend : click*/

});






http://ift.tt/VNkBKA