pr feedback
This commit is contained in:
parent
712522a16d
commit
0c06a702dc
1 changed files with 1 additions and 2 deletions
|
@ -87,10 +87,9 @@ function createTimelineResizeDetector(scrollNode, itemlist, callback) {
|
||||||
return ro;
|
return ro;
|
||||||
} else if (typeof IntersectionObserver !== "undefined") {
|
} else if (typeof IntersectionObserver !== "undefined") {
|
||||||
const threshold = [];
|
const threshold = [];
|
||||||
for (let i = 0; i < 1000; ++i) {
|
for (let i = 0; i <= 1000; ++i) {
|
||||||
threshold.push(i / 1000);
|
threshold.push(i / 1000);
|
||||||
}
|
}
|
||||||
threshold.push(1);
|
|
||||||
const io = new IntersectionObserver(
|
const io = new IntersectionObserver(
|
||||||
callback,
|
callback,
|
||||||
{root: scrollNode, threshold},
|
{root: scrollNode, threshold},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue