DockYard / ember-in-viewport

Detect if an Ember View or Component is in the viewport @ 60FPS
MIT License
245 stars 91 forks source link

Pass the intersectionObserverEntry to callbacks of {{in-vieport}} modifier #278

Closed cibernox closed 3 years ago

cibernox commented 3 years ago

When using the {{in-viewport}} modifier, the intersectionObserverEntry property was not being passed to the onEnter/onExit callbacks. This object is interesting because contains useful info like the intersection ratio, which can use to discriminate what visibility threshold an element has crossed when there's more than one set.