auto-scroll past skip sections on load
[?]
Jul 5, 2025, 10:28 AM
XHWLKCLDFUQFFHLFLFDC6WHK6RXRPQSXJG5AKGPER7R5AHVCRHUACDependencies
- [2]
OQ6HSAWHshow record log - [3]
WW36JYLRadd iced_nav_scrollable widget crate - [4]
WIFVLV37nav-scrollabe: detect size to determine if needs scrolling, msg when ready - [5]
SASAN2XCuse nav-scrollable - [6]
WI2BVQ6Jrm client lib crate - [7]
AHWWRC73navigate log entries - [*]
SWWE2R6Mdisplay basic repo stuff
Change contents
- replacement in libflorescence/src/repo.rs at line 885
Err(e) =>Err(_e) => - edit in iced_nav_scrollable/src/lib.rs at line 11
/// Number of pixels of context that is skipped on normal scrolling that should/// be made visibleconst VISIBLE_CONTEXT_HEIGHT: f32 = 60.0; // roughly 3 lines of text - replacement in iced_nav_scrollable/src/lib.rs at line 146
update_offsets_if_ready(nav);return update_offsets_if_ready(nav); - replacement in iced_nav_scrollable/src/lib.rs at line 169
update_offsets_if_ready(nav);return update_offsets_if_ready(nav); - replacement in iced_nav_scrollable/src/lib.rs at line 259
fn update_offsets_if_ready(nav: &mut NavScrollable) {fn update_offsets_if_ready(nav: &mut NavScrollable) -> Task<Msg> { - replacement in iced_nav_scrollable/src/lib.rs at line 272
nav.ready = Some(if acc > nav.height {NeedsScrolling::Yeslet task;(task, nav.ready) = if acc > nav.height {// Scroll to first relevant section, but only if it's the first time// it's readylet task = if nav.ready.is_none() && !nav.skip_sections.is_empty() {scroll_to_fst_non_skip(nav)} else {Task::none()};(task, Some(NeedsScrolling::Yes)) - replacement in iced_nav_scrollable/src/lib.rs at line 283
NeedsScrolling::No});(Task::none(), Some(NeedsScrolling::No))}; - edit in iced_nav_scrollable/src/lib.rs at line 286
return task; - edit in iced_nav_scrollable/src/lib.rs at line 288
Task::none() - edit in iced_nav_scrollable/src/lib.rs at line 291
fn scroll_to_fst_non_skip(nav: &NavScrollable) -> Task<Msg> {if let Some(y) = nav.skip_sections.contains(&0).then(|| nav.section_offsets.get(1)).flatten(){let y = if *y > -VISIBLE_CONTEXT_HEIGHT {*y - VISIBLE_CONTEXT_HEIGHT} else {0.0};task::scroll_to(nav.id.clone(),scrollable::AbsoluteOffset { x: 0.0, y },)} else {Task::none()}} - replacement in iced_nav_scrollable/src/lib.rs at line 326
_bounds: Rectangle,content_bounds: Rectangle,bounds: Rectangle,_content_bounds: Rectangle, - replacement in iced_nav_scrollable/src/lib.rs at line 332
self.height = Some(content_bounds.height);self.height = Some(bounds.height);