* wip

* wip

* wip

* wip

* refactor

* Update note.vue

* wip
This commit is contained in:
syuilo
2021-02-14 22:26:07 +09:00
committed by GitHub
parent 6ce2231e70
commit 1eda7c8565
22 changed files with 3452 additions and 44 deletions

View File

@@ -54,6 +54,14 @@ export function scroll(el: Element, top: number) {
}
}
export function scrollToTop(el: Element) {
scroll(el, 0);
}
export function scrollToBottom(el: Element) {
scroll(el, 99999); // TODO: ちゃんと計算する
}
export function isBottom(el: Element, asobi = 0) {
const container = getScrollContainer(el);
const current = container