From 0c06a702dc75ad542b63aeaf7f27fb485f230f87 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 28 Feb 2019 16:05:55 +0100 Subject: [PATCH] pr feedback --- src/components/structures/ScrollPanel.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/structures/ScrollPanel.js b/src/components/structures/ScrollPanel.js index 10344a619f..2dbc711067 100644 --- a/src/components/structures/ScrollPanel.js +++ b/src/components/structures/ScrollPanel.js @@ -87,10 +87,9 @@ function createTimelineResizeDetector(scrollNode, itemlist, callback) { return ro; } else if (typeof IntersectionObserver !== "undefined") { const threshold = []; - for (let i = 0; i < 1000; ++i) { + for (let i = 0; i <= 1000; ++i) { threshold.push(i / 1000); } - threshold.push(1); const io = new IntersectionObserver( callback, {root: scrollNode, threshold},