mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 18:29:03 +00:00
ScrollPanel: implement forward-fill
This commit is contained in:
@@ -150,6 +150,9 @@ module.exports = React.createClass({
|
|||||||
// more messages.
|
// more messages.
|
||||||
this._maybeFill(true);
|
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.
|
// check if there is already a pending fill request. If not, set one off.
|
||||||
|
|||||||
Reference in New Issue
Block a user