From c54d5e70401d8a417f1fe816fc354c9851a23d20 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 19 Aug 2020 17:51:31 +0900 Subject: [PATCH] =?UTF-8?q?fix(clinet):=20=E8=AA=A4=E5=AD=97=E3=81=AB?= =?UTF-8?q?=E3=82=88=E3=82=8A=E3=82=B9=E3=82=AF=E3=83=AD=E3=83=BC=E3=83=AB?= =?UTF-8?q?=E3=82=A4=E3=83=99=E3=83=B3=E3=83=88=E3=83=AA=E3=82=B9=E3=83=8A?= =?UTF-8?q?=E3=81=8C=E8=A7=A3=E9=99=A4=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F=E3=81=AE=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/scripts/scroll.ts | 4 ++-- 1 file 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 });