You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
oh.. ok something just noticed: it fires every time the contents changes - so I have a tweened element inside, it fires every frame until the animation ends, and then it stops firing.
<IntersectionObserver once {element} on:intersect={doOnce}>
<div bind:this={element}>
{$number}
this also messes with the duration of the tween - as a side effect, it's resetting every frame, so it takes much longer the bigger the number or the more decimal places.
when I use
once
andon:intersect
the function seems to be getting called every frame instead of just one time.The text was updated successfully, but these errors were encountered: