From 4e48146fb59ee29c89727d6789b22b8cae97ecc0 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Tue, 16 Jan 2018 08:59:44 -0800 Subject: [PATCH] improve scrolling perf --- routes/_components/Status.html | 1 + routes/_components/VirtualList.html | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/routes/_components/Status.html b/routes/_components/Status.html index ae9fd02..9f7b846 100644 --- a/routes/_components/Status.html +++ b/routes/_components/Status.html @@ -61,6 +61,7 @@ ".............. status-toolbar"; grid-template-columns: 58px 1fr; border-bottom: 1px solid var(--main-border); + will-change: transform; /* TODO: is this necessary? */ } :global(.status-sidebar) { diff --git a/routes/_components/VirtualList.html b/routes/_components/VirtualList.html index f77e915..5990610 100644 --- a/routes/_components/VirtualList.html +++ b/routes/_components/VirtualList.html @@ -39,10 +39,7 @@ this.store.set({ scrollTop: e.target.scrollTop }) - }, DEBOUNCE_TIME, { - leading: true, - trailing: true - })) + }, DEBOUNCE_TIME)) }, ondestroy () { },