ScrollPanel: implement forward-fill

pull/21833/head
Richard van der Hoff 2015-12-24 00:08:17 +00:00
parent f2a24521dc
commit 93e7f90ae4
1 changed files with 3 additions and 0 deletions

View File

@ -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.