parent
e504ee24ae
commit
1cecbe7f44
4
external/taphold.js
vendored
4
external/taphold.js
vendored
@ -106,12 +106,16 @@
|
||||
$(this).bind((touchSupported ? "touchstart" : "mousedown"), data, startHandler)
|
||||
.bind((touchSupported ? "touchend" : "mouseup"), stopHandler)
|
||||
.bind((touchSupported ? "touchmove" : "mouseleave"), leaveHandler);
|
||||
if(touchSupported)
|
||||
$(this).bind("touchcancel", leaveHandler);
|
||||
},
|
||||
teardown: function(namespaces)
|
||||
{
|
||||
$(this).unbind((touchSupported ? "touchstart" : "mousedown"), startHandler)
|
||||
.unbind((touchSupported ? "touchend" : "mouseup"), stopHandler)
|
||||
.unbind((touchSupported ? "touchmove" : "mouseleave"), leaveHandler);
|
||||
if(touchSupported)
|
||||
$(this).bind("touchcancel", leaveHandler);
|
||||
}
|
||||
};
|
||||
})(jQuery);
|
||||
|
Loading…
x
Reference in New Issue
Block a user