Merge pull request #5920 from aaronraimist/page-up-down

Fix page up/down scrolling only half a page
This commit is contained in:
Travis Ralston 2021-04-28 09:51:36 -06:00 committed by GitHub
commit baef98253e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
};