1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-21 07:42:09 +03:00

also use relative scrolling when eh ... doing relative scrolling

This commit is contained in:
Bruno Windels
2020-03-03 15:44:59 +01:00
parent 223956a206
commit 3e39cebb8f

View File

@ -523,7 +523,7 @@ export default createReactClass({
scrollRelative: function(mult) { scrollRelative: function(mult) {
const scrollNode = this._getScrollNode(); const scrollNode = this._getScrollNode();
const delta = mult * scrollNode.clientHeight * 0.5; const delta = mult * scrollNode.clientHeight * 0.5;
scrollNode.scrollTop = scrollNode.scrollTop + delta; scrollNode.scrollBy(0, delta);
this._saveScrollState(); this._saveScrollState();
}, },