Chat UI (#7197)
* wip * wip * wip * wip * refactor * Update note.vue * wip
This commit is contained in:
parent
6ce2231e70
commit
1eda7c8565
22 changed files with 3452 additions and 44 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue