---
title: "isOutOfBounds"
description: "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."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


> **Deprecated** Use isOutOfBounds() that supports minimum touch target

```kotlin
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.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
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)`. Returns`false` if the current pointer is up or it is inside
the pointer region.



