Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5920 from aaronraimist/page-up-down
Browse files Browse the repository at this point in the history
Fix page up/down scrolling only half a page
  • Loading branch information
turt2live authored Apr 28, 2021
2 parents 8d8525c + ac486c8 commit baef982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/structures/ScrollPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ export default class ScrollPanel extends React.Component {
*/
scrollRelative = mult => {
const scrollNode = this._getScrollNode();
const delta = mult * scrollNode.clientHeight * 0.5;
const delta = mult * scrollNode.clientHeight * 0.9;
scrollNode.scrollBy(0, delta);
this._saveScrollState();
};
Expand Down

0 comments on commit baef982

Please sign in to comment.