From 14f104161f4bebd1dd715e0e4b10ea4da53d8a61 Mon Sep 17 00:00:00 2001 From: RedPhoenixQ Date: Thu, 14 Mar 2024 00:55:50 +0100 Subject: [PATCH] Add `pointerenter` events to `Menu` items This includes all components with events inheriting from `ItemEvents` --- src/lib/bits/menu/components/menu-checkbox-item.svelte | 1 + src/lib/bits/menu/components/menu-item.svelte | 1 + src/lib/bits/menu/components/menu-radio-item.svelte | 1 + src/lib/bits/menu/components/menu-sub-trigger.svelte | 1 + src/lib/bits/menu/types.ts | 1 + 5 files changed, 5 insertions(+) diff --git a/src/lib/bits/menu/components/menu-checkbox-item.svelte b/src/lib/bits/menu/components/menu-checkbox-item.svelte index 59f649990..aca730f89 100644 --- a/src/lib/bits/menu/components/menu-checkbox-item.svelte +++ b/src/lib/bits/menu/components/menu-checkbox-item.svelte @@ -54,6 +54,7 @@ on:m-pointerdown={dispatch} on:m-pointerleave={dispatch} on:m-pointermove={dispatch} + on:pointerenter > diff --git a/src/lib/bits/menu/components/menu-item.svelte b/src/lib/bits/menu/components/menu-item.svelte index d933d3c27..bdbadcff8 100644 --- a/src/lib/bits/menu/components/menu-item.svelte +++ b/src/lib/bits/menu/components/menu-item.svelte @@ -40,6 +40,7 @@ on:m-pointerdown={dispatch} on:m-pointerleave={dispatch} on:m-pointermove={dispatch} + on:pointerenter > diff --git a/src/lib/bits/menu/components/menu-radio-item.svelte b/src/lib/bits/menu/components/menu-radio-item.svelte index 55cb48f6f..dad403da0 100644 --- a/src/lib/bits/menu/components/menu-radio-item.svelte +++ b/src/lib/bits/menu/components/menu-radio-item.svelte @@ -37,6 +37,7 @@ on:m-pointerdown={dispatch} on:m-pointerleave={dispatch} on:m-pointermove={dispatch} + on:pointerenter > diff --git a/src/lib/bits/menu/components/menu-sub-trigger.svelte b/src/lib/bits/menu/components/menu-sub-trigger.svelte index e1360f7a3..7024db379 100644 --- a/src/lib/bits/menu/components/menu-sub-trigger.svelte +++ b/src/lib/bits/menu/components/menu-sub-trigger.svelte @@ -49,6 +49,7 @@ on:m-keydown={dispatch} on:m-pointerleave={dispatch} on:m-pointermove={dispatch} + on:pointerenter > diff --git a/src/lib/bits/menu/types.ts b/src/lib/bits/menu/types.ts index 8a7e8e895..764677d77 100644 --- a/src/lib/bits/menu/types.ts +++ b/src/lib/bits/menu/types.ts @@ -59,6 +59,7 @@ type ItemEvents = { pointerdown: CustomEventHandler; pointerleave: CustomEventHandler; pointermove: CustomEventHandler; + pointerenter: CustomEventHandler; }; type CheckboxItemEvents = ItemEvents;