Closed gmurphey closed 3 years ago
I have a case where it would be beneficial to have the intersection observer entry in my in-viewport modifier callbacks.
in-viewport
@action entered(_, entry) { const targetInfo = entry.boundingClientRect; const rootBoundsInfo = entry.rootBounds; if (targetInfo.bottom < rootBoundsInfo.top) { // do some things } }
<div {{in-viewport onEnter=this.entered}}></div>
It turns out I did this very same thing on #278 and I didn't notice there was an open PR for this very same thing. This can be closed now.
FYI it has been released already.
I have a case where it would be beneficial to have the intersection observer entry in my
in-viewport
modifier callbacks.