pointerStore

Reactive pointer position

Demo

Move pointer to change the values

X: 0

Y: 0

Usage

<script lang="ts">
import { pointerStore } from 'svelte-legos';

const position = pointerStore();

// $position gives the
// Position { x: number, y: number } of the input pointer
</script>