Autoscroll

REPL SOURCE

Simple auto-scrolling that only requires a reference to your container

Autoscrolling occurs when the cursor is close to the edges of your container. This does not happen when the bottom or top of your widget is close to the edges

<!-- You can use a custom container as a scroll target -->
<div bind:this={container}>
  <Grid {...} scroller={container} />
</div>

<script>
let container;
</script>

Set the distance from the cursor to the edge (The default value is 20)