jh-changes
Shin'ya Ueoka 7 years ago
parent 77e800feaa
commit 91ea58008c
  1. 4
      src/content/scrolls.js

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