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)
|
$(this).bind((touchSupported ? "touchstart" : "mousedown"), data, startHandler)
|
||||||
.bind((touchSupported ? "touchend" : "mouseup"), stopHandler)
|
.bind((touchSupported ? "touchend" : "mouseup"), stopHandler)
|
||||||
.bind((touchSupported ? "touchmove" : "mouseleave"), leaveHandler);
|
.bind((touchSupported ? "touchmove" : "mouseleave"), leaveHandler);
|
||||||
|
if(touchSupported)
|
||||||
|
$(this).bind("touchcancel", leaveHandler);
|
||||||
},
|
},
|
||||||
teardown: function(namespaces)
|
teardown: function(namespaces)
|
||||||
{
|
{
|
||||||
$(this).unbind((touchSupported ? "touchstart" : "mousedown"), startHandler)
|
$(this).unbind((touchSupported ? "touchstart" : "mousedown"), startHandler)
|
||||||
.unbind((touchSupported ? "touchend" : "mouseup"), stopHandler)
|
.unbind((touchSupported ? "touchend" : "mouseup"), stopHandler)
|
||||||
.unbind((touchSupported ? "touchmove" : "mouseleave"), leaveHandler);
|
.unbind((touchSupported ? "touchmove" : "mouseleave"), leaveHandler);
|
||||||
|
if(touchSupported)
|
||||||
|
$(this).bind("touchcancel", leaveHandler);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user