<svelte:window bind:scrollY={y}/>

<p>scrolled to {y}</p>