# FollowedPointer

interface in `@dioramajs/diorama/kit`

```ts
import type { FollowedPointer } from '@dioramajs/diorama/kit'
```

The pointer `follow` tracks. Live: read it in the update.

```ts
interface FollowedPointer
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `over` | `boolean` | A mouse or pen is over the element, or a finger is pressed on it. |
| `x` | `number` | Its last position in client px, like `event.clientX`. Kept after it leaves. |
| `y` | `number` | Its last position in client px, like `event.clientY`. Kept after it leaves. |
| `box` | `box(box: ClientBox): { readonly x: number; readonly y: number }` | Its last position in px of `box` with y up, as `toBox` gives it: pass `input` in the update, so a still pointer keeps its place on the page while it scrolls. The same object every call. |

Also exported from `@dioramajs/effects/kit`.

Defined in [packages/effects/src/kit.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/kit.ts#L321).
