Fix a flaky test in the timelinepanel code

Sometimes it was possible for there to be a scroll event before the initial
pagination completed, which then upset the rest of the test. Just give it a few
ms to sort itself out instead.
This commit is contained in:
Richard van der Hoff 2017-07-11 17:21:41 +01:00
parent 3e93930dcc
commit 1139dd2be5
2 changed files with 14 additions and 8 deletions

View file

@ -350,9 +350,9 @@ var TimelinePanel = React.createClass({
});
},
onMessageListScroll: function() {
onMessageListScroll: function(e) {
if (this.props.onScroll) {
this.props.onScroll();
this.props.onScroll(e);
}
if (this.props.manageReadMarkers) {