From a85ffad4cbc1f50a3f7ca95ab261eb9e07476d53 Mon Sep 17 00:00:00 2001 From: Evan Paterakis Date: Fri, 20 Dec 2024 18:20:32 +0200 Subject: [PATCH] feat(Timeline): decrease queue threshold --- src/Views/ContentBase.vala | 2 +- src/Views/Timeline.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Views/ContentBase.vala b/src/Views/ContentBase.vala index 61cb755ac..dc6090d25 100644 --- a/src/Views/ContentBase.vala +++ b/src/Views/ContentBase.vala @@ -55,7 +55,7 @@ public class Tuba.Views.ContentBase : Views.Base { on_bottom_reached (); } - var is_close_to_top = scrolled.vadjustment.value <= 1000; + var is_close_to_top = scrolled.vadjustment.value <= 100; set_scroll_to_top_reveal_child ( !is_close_to_top && scrolled.vadjustment.value + scrolled.vadjustment.page_size + 100 < scrolled.vadjustment.upper diff --git a/src/Views/Timeline.vala b/src/Views/Timeline.vala index deb331f30..01bcdd077 100644 --- a/src/Views/Timeline.vala +++ b/src/Views/Timeline.vala @@ -305,7 +305,7 @@ public class Tuba.Views.Timeline : AccountHolder, Streamable, Views.ContentBase var entity = Entity.from_json (accepts, ev.get_node ()); if (should_hide (entity)) return; - if (use_queue && scrolled.vadjustment.value > 1000) { + if (use_queue && scrolled.vadjustment.value > 100) { entity_queue += entity; entity_queue_size += 1; return;