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
Этот коммит содержится в:
Joram Wilander
2017-06-23 12:09:56 -04:00
коммит произвёл GitHub
родитель b01da39887
Коммит ca8d57c4db
14 изменённых файлов: 179 добавлений и 187 удалений

Просмотреть файл

@@ -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();
}