cancel
Cancels the current touch event sequence. Calling cancel
in a touchstart
or dragmove
will disable subsequent move or tap/end/hold event handlers from being called.
Example
<div id="touch">Touch here</div>
<script>
$("#touch").kendoTouch({
touchstart: function(e) {
e.sender.cancel(); // e.sender is a reference to the touch widget.
},
hold: function(e) {
// this event handler will not be executed
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(e);
}
});
</script>