PLT-6890 Fix various scrolling issues (#6727)
* Fix various scrolling issues * Move reaction scrolling to reaction list * Handle scrolling when RHS opens * Only run scroll update code when posts change
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b01da39887
Коммит
ca8d57c4db
@@ -4,6 +4,8 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import {postListScrollChange} from 'actions/global_actions.jsx';
|
||||
|
||||
export default class PostImageEmbed extends React.PureComponent {
|
||||
static propTypes = {
|
||||
|
||||
@@ -66,6 +68,9 @@ export default class PostImageEmbed extends React.PureComponent {
|
||||
loaded: true,
|
||||
errored: false
|
||||
});
|
||||
|
||||
postListScrollChange();
|
||||
|
||||
if (this.props.onLinkLoaded) {
|
||||
this.props.onLinkLoaded();
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user