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 удалений

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

@@ -19,6 +19,7 @@ import {trackEvent} from 'actions/diagnostics_actions.jsx';
import Constants from 'utils/constants.jsx';
const ActionTypes = Constants.ActionTypes;
import EventTypes from 'utils/event_types.jsx';
import Client from 'client/web_client.jsx';
import * as AsyncClient from 'utils/async_client.jsx';
@@ -560,3 +561,9 @@ export function requestOpenGraphMetadata(url) {
);
}
}
export function postListScrollChange() {
AppDispatcher.handleViewAction({
type: EventTypes.POST_LIST_SCROLL_CHANGE
});
}