fix(web): maybe fix initial infiniscroll when short
This commit is contained in:
parent
3c5c229045
commit
d59f48aa1d
2 changed files with 3 additions and 3 deletions
|
@ -28,11 +28,11 @@ leptos_router = { version = "0.6", features = ["csr"] }
|
|||
leptos-use = { version = "0.10", features = ["serde"] }
|
||||
reqwest = { version = "0.12", features = ["json"] }
|
||||
apb = { path = "../apb", features = ["unstructured", "activitypub-fe", "activitypub-counters", "litepub"] }
|
||||
uriproxy = { path = "../uriproxy/" }
|
||||
uriproxy = { path = "../utils/uriproxy/" }
|
||||
futures = "0.3.30"
|
||||
lazy_static = "1.4"
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
web-sys = { version = "0.3", features = ["Screen"] }
|
||||
mdhtml = { path = "../mdhtml/" }
|
||||
mdhtml = { path = "../utils/mdhtml/" }
|
||||
jrd = "0.1"
|
||||
tld = "2.35"
|
||||
|
|
|
@ -151,7 +151,7 @@ pub fn TimelineFeed(tl: Timeline) -> impl IntoView {
|
|||
move || (scroll_debounced.get(), height.get()),
|
||||
move |(s, h)| async move {
|
||||
if !config.get().infinite_scroll { return }
|
||||
if s > 0.0 && h - s < view_height && !tl.loading.get() {
|
||||
if !tl.loading.get() && h - s < view_height {
|
||||
if let Err(e) = tl.more(auth).await {
|
||||
tracing::error!("auto load failed: {e}");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue