From ca8d57c4dbfe839db28b583caa7d599c0cfc023a Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 23 Jun 2017 12:09:56 -0400 Subject: 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 --- webapp/components/post_view/post_image.jsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'webapp/components/post_view/post_image.jsx') diff --git a/webapp/components/post_view/post_image.jsx b/webapp/components/post_view/post_image.jsx index 5feb01db4..322742305 100644 --- a/webapp/components/post_view/post_image.jsx +++ b/webapp/components/post_view/post_image.jsx @@ -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(); } -- cgit v1.2.3-1-g7c22