zng_wgt_markdown

Function try_scroll_link

Source
pub fn try_scroll_link(args: &LinkArgs) -> bool
Expand description

Handle url in the format #anchor, by scrolling and focusing the anchor.

If the anchor is found scrolls to it and moves focus to the #anchor widget, or the first focusable descendant of it, or the markdown widget or the first focusable ancestor of it.

Note that the request is handled even if the anchor is not found.