Setting intersect observer to detect visibility and added delay.
This commit is contained in:
@ -965,7 +965,7 @@ class IgniteTemplate {
|
||||
if (results[0].isIntersecting) {
|
||||
this._intersectObserverCallback.forEach(callback => callback(results[0]));
|
||||
}
|
||||
}, { root: null});
|
||||
}, { root: null, trackVisibility: true, delay: 1000 });
|
||||
this._intersectObserver.observe(this.element);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user