From 3da0a04fa5f326dfb6f10fe6b07851b3aa2c3d5c Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 23 Aug 2024 14:13:41 +0100 Subject: [PATCH] Add comments --- packages/bbui/src/Popover/Popover.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/bbui/src/Popover/Popover.svelte b/packages/bbui/src/Popover/Popover.svelte index 6c6ae6817d..cccd83f871 100644 --- a/packages/bbui/src/Popover/Popover.svelte +++ b/packages/bbui/src/Popover/Popover.svelte @@ -35,6 +35,9 @@ $: target = portalTarget || getContext(Context.PopoverRoot) || ".spectrum" $: { + // Disable pointer events for the initial part of the animation, because we + // fly from top to bottom and initially can be positioned under the cursor, + // causing a flashing hover state in the content if (open && animate) { blockPointerEvents = true clearTimeout(timeout)