fix page scroll
This commit is contained in:
parent
0bd0456592
commit
d1f456dca0
1 changed files with 2 additions and 2 deletions
|
@ -75,9 +75,9 @@ const scrollHorizonally = (win, count) => {
|
||||||
|
|
||||||
const scrollPages = (win, count) => {
|
const scrollPages = (win, count) => {
|
||||||
let target = scrollTarget(win);
|
let target = scrollTarget(win);
|
||||||
let height = target.innerHeight;
|
let height = target.clientHeight;
|
||||||
let x = target.scrollLeft;
|
let x = target.scrollLeft;
|
||||||
let y = target.scrollLeft + height * count;
|
let y = target.scrollTop + height * count;
|
||||||
target.scrollTo(x, y);
|
target.scrollTo(x, y);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in a new issue