From 145b233041673ae021ff9e212446efc264ed1b23 Mon Sep 17 00:00:00 2001 From: Arslan <81504779+arslanastral@users.noreply.github.com> Date: Wed, 31 Jan 2024 00:42:43 +0800 Subject: [PATCH] fix: add `onscrollend` event type (#10337) * feat: add scrollend type * Update .changeset/tame-cycles-kneel.md --- .changeset/tame-cycles-kneel.md | 5 +++++ packages/svelte/elements.d.ts | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/tame-cycles-kneel.md diff --git a/.changeset/tame-cycles-kneel.md b/.changeset/tame-cycles-kneel.md new file mode 100644 index 0000000000..1b6bcf7772 --- /dev/null +++ b/.changeset/tame-cycles-kneel.md @@ -0,0 +1,5 @@ +--- +"svelte": patch +--- + +fix: add `scrollend` event type diff --git a/packages/svelte/elements.d.ts b/packages/svelte/elements.d.ts index 1945ec973c..7e440ae132 100644 --- a/packages/svelte/elements.d.ts +++ b/packages/svelte/elements.d.ts @@ -351,6 +351,9 @@ export interface DOMAttributes { 'on:scroll'?: UIEventHandler | undefined | null; onscroll?: UIEventHandler | undefined | null; onscrollcapture?: UIEventHandler | undefined | null; + 'on:scrollend'?: UIEventHandler | undefined | null; + onscrollend?: UIEventHandler | undefined | null; + onscrollendcapture?: UIEventHandler | undefined | null; 'on:resize'?: UIEventHandler | undefined | null; onresize?: UIEventHandler | undefined | null; onresizecapture?: UIEventHandler | undefined | null;