fix page scroll
這個提交存在於:
父節點
0bd0456592
當前提交
d1f456dca0
共有 1 個檔案被更改,包括 2 行新增 和 2 行删除
|
@ -75,9 +75,9 @@ const scrollHorizonally = (win, count) => {
|
|||
|
||||
const scrollPages = (win, count) => {
|
||||
let target = scrollTarget(win);
|
||||
let height = target.innerHeight;
|
||||
let height = target.clientHeight;
|
||||
let x = target.scrollLeft;
|
||||
let y = target.scrollLeft + height * count;
|
||||
let y = target.scrollTop + height * count;
|
||||
target.scrollTo(x, y);
|
||||
};
|
||||
|
||||
|
|
新增問題並參考