<script>
import { press } from 'svelte-gestures';
let x;
let y;
let target;
function handler(event) {
x = event.detail.x;
y = event.detail.y;
target = event.detail.target
}
</script>
<div use:press={()=>({ timeframe: 300 })} on:press={handler} style="width:500px;height:500px;border:1px solid black;">
press: {x} {y}
<br>
target: {target}
</div>