Function

isOutOfBounds

Returns true if the pointer has moved outside of the region of `(0, 0, size.

Common
Deprecated Use isOutOfBounds() that supports minimum touch target

isOutOfBounds

fun PointerInputChange.isOutOfBounds(size: IntSize): Boolean

Returns true if the pointer has moved outside of the region of (0, 0, size.width, size.height) or false if the current pointer is up or it is inside the given bounds.


isOutOfBounds

Common
fun PointerInputChange.isOutOfBounds(size: IntSize, extendedTouchPadding: Size): Boolean

Returns true if the pointer has moved outside of the pointer region. For Touch events, this is (-extendedTouchPadding.width, -extendedTouchPadding.height, size.width + extendedTouchPadding.width, size.height + extendedTouchPadding.height) and for other events, this is (0, 0, size.width, size.height). Returnsfalse if the current pointer is up or it is inside the pointer region.