mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-21 06:21:03 +02:00
also use relative scrolling when eh ... doing relative scrolling
This commit is contained in:
parent
223956a206
commit
3e39cebb8f
@ -523,7 +523,7 @@ export default createReactClass({
|
||||
scrollRelative: function(mult) {
|
||||
const scrollNode = this._getScrollNode();
|
||||
const delta = mult * scrollNode.clientHeight * 0.5;
|
||||
scrollNode.scrollTop = scrollNode.scrollTop + delta;
|
||||
scrollNode.scrollBy(0, delta);
|
||||
this._saveScrollState();
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user