isOutOfBounds
Function
Common
Deprecated Use isOutOfBounds() that supports minimum touch target
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.
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.