forked from cybrespace/pinafore
improve scrolling perf
This commit is contained in:
parent
46209d7a2e
commit
4e48146fb5
|
@ -61,6 +61,7 @@
|
||||||
".............. status-toolbar";
|
".............. status-toolbar";
|
||||||
grid-template-columns: 58px 1fr;
|
grid-template-columns: 58px 1fr;
|
||||||
border-bottom: 1px solid var(--main-border);
|
border-bottom: 1px solid var(--main-border);
|
||||||
|
will-change: transform; /* TODO: is this necessary? */
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(.status-sidebar) {
|
:global(.status-sidebar) {
|
||||||
|
|
|
@ -39,10 +39,7 @@
|
||||||
this.store.set({
|
this.store.set({
|
||||||
scrollTop: e.target.scrollTop
|
scrollTop: e.target.scrollTop
|
||||||
})
|
})
|
||||||
}, DEBOUNCE_TIME, {
|
}, DEBOUNCE_TIME))
|
||||||
leading: true,
|
|
||||||
trailing: true
|
|
||||||
}))
|
|
||||||
},
|
},
|
||||||
ondestroy () {
|
ondestroy () {
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue