From 0a3ed642d2e5a9dcce5bd3cf893cdfda46ee57ef Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 7 Nov 2022 13:52:51 -0800 Subject: [PATCH] fix scroll anim bug? --- package.json | 2 +- packages/client/src/ui/universal.vue | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/package.json b/package.json index feb196e4f9..4231774ea2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.9.21", + "version": "12.119.0-calc.9.22", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/ui/universal.vue b/packages/client/src/ui/universal.vue index ec82b94279..55fad197a0 100644 --- a/packages/client/src/ui/universal.vue +++ b/packages/client/src/ui/universal.vue @@ -178,25 +178,6 @@ onMounted(() => { window.addEventListener('resize', () => { if (window.innerWidth >= DESKTOP_THRESHOLD) isDesktop.value = true; }, { passive: true }); - - function createScrollStopListener(element: Window, callback: TimerHandler, timeout: number): () => void { - let handle = 0; - const onScroll = () => { - if (handle) { - clearTimeout(handle); - } - postButton.style.transform = 'scale(0)'; - handle = setTimeout(callback, timeout || 200); - }; - element.addEventListener('scroll', onScroll, { passive: true }); - return () => { - element.removeEventListener('scroll', onScroll); - }; - } - - createScrollStopListener(window, () => { - postButton.style.transform = 'scale(1)'; - } , 200); } });