Edit this page

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
            console.log(e);
        }
    });
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy