Skip to content

Commit

Permalink
fix: more listview regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr committed Aug 30, 2023
1 parent e2768a8 commit b74dce3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Views/Thread.vala
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,13 @@ public class Tuba.Views.Thread : Views.ContentBase, AccountHolder {
on_content_changed ();

#if GTK_4_12
content.scroll_to (to_add_ancestors.length, Gtk.ListScrollFlags.FOCUS, null);
uint timeout = 0;
timeout = Timeout.add (1000, () => {
content.scroll_to (to_add_ancestors.length, Gtk.ListScrollFlags.FOCUS, null);

GLib.Source.remove (timeout);
return true;
}, Priority.LOW);
#endif
})
.exec ();
Expand Down

0 comments on commit b74dce3

Please sign in to comment.