Function

cancel

Sends a cancel event to cancel the current gesture.

Deprecated

Replaced by TouchInjectionScope. Use performTouchInput instead of performGesture

Source set: Common

Added in 1.11.0-rc01

Deprecated in 1.11.0-rc01

fun GestureScope.cancel() = delegateScope.touch { cancel() }

Sends a cancel event to cancel the current gesture. The cancel event contains the current position of all active pointers.