fix 0/$
This commit is contained in:
parent
77e800feaa
commit
91ea58008c
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in a new issue