diff --git a/package.json b/package.json index feb196e4f..4231774ea 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 ec82b9427..55fad197a 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); } });