disable scroll-to-token entirely temporarily - https://github.com/vector-im/vector-web/issues/946

This commit is contained in:
Matthew Hodgson 2016-02-16 17:39:32 +00:00
parent 687eae7f43
commit 34d0fc890a

View file

@ -418,7 +418,9 @@ module.exports = React.createClass({
var scrollState = this.scrollState;
var scrollNode = this._getScrollNode();
if (scrollState.stuckAtBottom) {
// XXX: DISABLE SCROLL TO TOKEN ENTIRELY TEMPORARILY AS IT'S SCREWING
// UP MY DEMO - see https://github.com/vector-im/vector-web/issues/946
if (true || scrollState.stuckAtBottom) {
scrollNode.scrollTop = scrollNode.scrollHeight;
debuglog("Scrolled to bottom; offset now", scrollNode.scrollTop);
} else if (scrollState.trackedScrollToken) {