You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-22 18:41:57 +03:00
pr feedback
This commit is contained in:
@ -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},
|
||||||
|
Reference in New Issue
Block a user