forked from cybrespace/pinafore
improve scrolling perf
This commit is contained in:
parent
46209d7a2e
commit
4e48146fb5
|
@ -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) {
|
||||
|
|
|
@ -39,10 +39,7 @@
|
|||
this.store.set({
|
||||
scrollTop: e.target.scrollTop
|
||||
})
|
||||
}, DEBOUNCE_TIME, {
|
||||
leading: true,
|
||||
trailing: true
|
||||
}))
|
||||
}, DEBOUNCE_TIME))
|
||||
},
|
||||
ondestroy () {
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue