This commit is contained in:
Shin'ya Ueoka 2017-11-12 22:16:25 +09:00
parent 77e800feaa
commit 91ea58008c

View file

@ -104,14 +104,14 @@ const scrollBottom = (win) => {
const scrollHome = (win) => { const scrollHome = (win) => {
let target = scrollTarget(win); let target = scrollTarget(win);
let x = 0; let x = 0;
let y = target.scrollLeft; let y = target.scrollTop;
target.scrollTo(x, y); target.scrollTo(x, y);
}; };
const scrollEnd = (win) => { const scrollEnd = (win) => {
let target = scrollTarget(win); let target = scrollTarget(win);
let x = target.scrollWidth; let x = target.scrollWidth;
let y = target.scrollLeft; let y = target.scrollTop;
target.scrollTo(x, y); target.scrollTo(x, y);
}; };