Add comments

This commit is contained in:
Andrew Kingston 2024-08-23 14:13:41 +01:00
parent 57da6d8cac
commit 3da0a04fa5
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@
$: target = portalTarget || getContext(Context.PopoverRoot) || ".spectrum" $: 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) { if (open && animate) {
blockPointerEvents = true blockPointerEvents = true
clearTimeout(timeout) clearTimeout(timeout)