summaryrefslogtreecommitdiff
path: root/src/client/scripts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-08-19 17:51:31 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-08-19 17:51:31 +0900
commitc54d5e70401d8a417f1fe816fc354c9851a23d20 (patch)
treed469bc26ffe058a6aec22d5d7069b219781464e4 /src/client/scripts
parentfix(server): Prevent error when recieve non-json data from websocket (diff)
downloadsharkey-c54d5e70401d8a417f1fe816fc354c9851a23d20.tar.gz
sharkey-c54d5e70401d8a417f1fe816fc354c9851a23d20.tar.bz2
sharkey-c54d5e70401d8a417f1fe816fc354c9851a23d20.zip
fix(clinet): 誤字によりスクロールイベントリスナが解除されていなかったのを修正
Diffstat (limited to 'src/client/scripts')
-rw-r--r--src/client/scripts/scroll.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/scripts/scroll.ts b/src/client/scripts/scroll.ts
index be9ea22261..bad31a80f5 100644
--- a/src/client/scripts/scroll.ts
+++ b/src/client/scripts/scroll.ts
@@ -20,7 +20,7 @@ export function onScrollTop(el: Element, cb) {
const pos = getScrollPosition(el);
if (pos === 0) {
cb();
- container.removeEventListener('scroll', onscroll);
+ container.removeEventListener('scroll', onScroll);
}
};
container.addEventListener('scroll', onScroll, { passive: true });
@@ -33,7 +33,7 @@ export function onScrollBottom(el: Element, cb) {
const pos = getScrollPosition(el);
if (pos + el.clientHeight > el.scrollHeight - 1) {
cb();
- container.removeEventListener('scroll', onscroll);
+ container.removeEventListener('scroll', onScroll);
}
};
container.addEventListener('scroll', onScroll, { passive: true });