Closed MaxKrai closed 4 years ago
If we use the onEnter() API from Usage example callbacks will not be fired in browsers where IntersectionObserver is not supported (e.g. IE):
const { onEnter } = this.inViewport.watchElement(element); onEnter(this.didEnterViewport.bind(this));
Appearance of element in viewport leads to idle calling of noop() here
noop()
Use modifier or pass callback to watchElement:
watchElement
this.inViewport.watchElement(element, {}, this.didEnterViewport.bind(this));
@MaxKrai 👋 Thx for the issue. I converted some of our dummy app examples to use this and the tests/ember serve seem to work correctly. Possible to identify what is different than our examples?
Description
If we use the onEnter() API from Usage example callbacks will not be fired in browsers where IntersectionObserver is not supported (e.g. IE):
Appearance of element in viewport leads to idle calling of
noop()
hereWorkaround
Use modifier or pass callback to
watchElement
: