Set overscanCount to 5
This commit is contained in:
parent
a7b6442ed9
commit
a783a87d04
File diff suppressed because one or more lines are too long
@ -239,6 +239,7 @@ export default class MessageBox extends PureComponent {
|
||||
initialScrollOffset={this.initialScrollTop}
|
||||
onScroll={this.handleScroll}
|
||||
className="messagebox-window"
|
||||
overscanCount={5}
|
||||
>
|
||||
{this.renderMessage}
|
||||
</List>
|
||||
|
@ -81,6 +81,7 @@ export default class UserList extends PureComponent {
|
||||
itemKey={this.getItemKey}
|
||||
itemSize={this.getItemHeight}
|
||||
estimatedItemSize={24}
|
||||
overscanCount={5}
|
||||
>
|
||||
{this.renderUser}
|
||||
</List>
|
||||
|
Loading…
Reference in New Issue
Block a user