mirror of https://github.com/vector-im/riot-web
Merge pull request #5920 from aaronraimist/page-up-down
Fix page up/down scrolling only half a pagepull/21833/head
commit
baef98253e
|
@ -525,7 +525,7 @@ export default class ScrollPanel extends React.Component {
|
||||||
*/
|
*/
|
||||||
scrollRelative = mult => {
|
scrollRelative = mult => {
|
||||||
const scrollNode = this._getScrollNode();
|
const scrollNode = this._getScrollNode();
|
||||||
const delta = mult * scrollNode.clientHeight * 0.5;
|
const delta = mult * scrollNode.clientHeight * 0.9;
|
||||||
scrollNode.scrollBy(0, delta);
|
scrollNode.scrollBy(0, delta);
|
||||||
this._saveScrollState();
|
this._saveScrollState();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue