You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
disable scroll-to-token entirely temporarily - https://github.com/vector-im/vector-web/issues/946
This commit is contained in:
@@ -418,7 +418,9 @@ module.exports = React.createClass({
|
|||||||
var scrollState = this.scrollState;
|
var scrollState = this.scrollState;
|
||||||
var scrollNode = this._getScrollNode();
|
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;
|
scrollNode.scrollTop = scrollNode.scrollHeight;
|
||||||
debuglog("Scrolled to bottom; offset now", scrollNode.scrollTop);
|
debuglog("Scrolled to bottom; offset now", scrollNode.scrollTop);
|
||||||
} else if (scrollState.trackedScrollToken) {
|
} else if (scrollState.trackedScrollToken) {
|
||||||
|
|||||||
Reference in New Issue
Block a user