<script>
	let x;
	let y;
</script>

<div class="viewport" bind:scrollLeft={x} bind:scrollTop={y}>
	<div class="content">
		<!-- content goes here -->
	</div>
</div>