1
0
Fork 0
mirror of synced 2024-09-21 03:43:21 +12:00

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

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)