From 93e7f90ae4f286394391857175803d3ed4c73012 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 24 Dec 2015 00:08:17 +0000 Subject: [PATCH] ScrollPanel: implement forward-fill --- src/components/structures/ScrollPanel.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/structures/ScrollPanel.js b/src/components/structures/ScrollPanel.js index fc0b630f26..80d35aea65 100644 --- a/src/components/structures/ScrollPanel.js +++ b/src/components/structures/ScrollPanel.js @@ -150,6 +150,9 @@ module.exports = React.createClass({ // more messages. this._maybeFill(true); } + if (sn.scrollTop > sn.scrollHeight - sn.clientHeight * 2) { + this._maybeFill(false); + } }, // check if there is already a pending fill request. If not, set one off.