Skip to content

Commit

Permalink
feat(Timeline): decrease queue threshold (#1293)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr authored Dec 20, 2024
1 parent ccd8816 commit 9e39da8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Views/ContentBase.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Views/Timeline.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9e39da8

Please sign in to comment.