log: track virtual list splices
These are caused when timeline note insertions are not at the top. egui-virtual-list only has optimizations for that scenario. Link: https://github.com/damus-io/notedeck/issues/94 Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -234,7 +234,13 @@ impl TimelineTab {
|
|||||||
|
|
||||||
match merge_kind {
|
match merge_kind {
|
||||||
// TODO: update egui_virtual_list to support spliced inserts
|
// TODO: update egui_virtual_list to support spliced inserts
|
||||||
MergeKind::Spliced => list.reset(),
|
MergeKind::Spliced => {
|
||||||
|
debug!(
|
||||||
|
"spliced when inserting {} new notes, resetting virtual list",
|
||||||
|
new_refs.len()
|
||||||
|
);
|
||||||
|
list.reset();
|
||||||
|
}
|
||||||
MergeKind::FrontInsert => {
|
MergeKind::FrontInsert => {
|
||||||
// only run this logic if we're reverse-chronological
|
// only run this logic if we're reverse-chronological
|
||||||
// reversed in this case means chronological, since the
|
// reversed in this case means chronological, since the
|
||||||
|
|||||||
Reference in New Issue
Block a user