diff --git a/packages/client/src/ui/universal.vue b/packages/client/src/ui/universal.vue index a820f145b9..a027cbdd05 100644 --- a/packages/client/src/ui/universal.vue +++ b/packages/client/src/ui/universal.vue @@ -382,12 +382,16 @@ const onContextmenu = (ev: MouseEvent) => { const attachSticky = (el: any) => { let lastScrollTop = 0; - addEventListener("scroll", (ev) => { - requestAnimationFrame(() => { - widgetsEl.scrollTop += window.scrollY - lastScrollTop; - lastScrollTop = window.scrollY <= 0 ? 0 : window.scrollY; - }) - }, { passive: true }); + addEventListener( + "scroll", + (ev) => { + requestAnimationFrame(() => { + widgetsEl.scrollTop += window.scrollY - lastScrollTop; + lastScrollTop = window.scrollY <= 0 ? 0 : window.scrollY; + }); + }, + { passive: true } + ); }; function top() {