sforkowany z mirror/soapbox
Don't throttle const isNearBottom
rodzic
3a38eed5ba
commit
211163383e
|
@ -137,7 +137,7 @@ class ChatMessageList extends ImmutablePureComponent {
|
||||||
const { initialLoad } = this.state;
|
const { initialLoad } = this.state;
|
||||||
const oldCount = prevProps.chatMessages.count();
|
const oldCount = prevProps.chatMessages.count();
|
||||||
const newCount = this.props.chatMessages.count();
|
const newCount = this.props.chatMessages.count();
|
||||||
const isNearBottom = throttle(this.isNearBottom(), 150);
|
const isNearBottom = this.isNearBottom();
|
||||||
const historyAdded = prevProps.chatMessages.getIn([0, 'id']) !== this.props.chatMessages.getIn([0, 'id']);
|
const historyAdded = prevProps.chatMessages.getIn([0, 'id']) !== this.props.chatMessages.getIn([0, 'id']);
|
||||||
|
|
||||||
// Retain scroll bar position when loading old messages
|
// Retain scroll bar position when loading old messages
|
||||||
|
|
Ładowanie…
Reference in New Issue