Update App.svelte

pull/4134/head
jongwoo Yoo 6 years ago committed by GitHub
parent 109639c57c
commit be2cc0f390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,10 +11,10 @@
</label>
<button use:longpress
on:longpress="{() => pressed = true}"
on:mouseup="{() => pressed = true}"
on:mouseenter="{() => pressed = false}"
>press and hold</button>
{#if pressed}
<p>congratulations, you pressed and held for {duration}ms</p>
{/if}
{/if}

Loading…
Cancel
Save