Skip to main content

scroll_to

Function scroll_to 

Source
pub fn scroll_to(node: RNode, target: ScrollTarget)
Expand description

Imperatively scroll a scroll piece (docs/scroll.md): node is the SCROLL node for edge and offset targets (ScrollTarget::Id ignores it and reveals the named element in its own nearest scroll). Animated on-screen; dayscript uses the unanimated variant for determinism. Call with no tree borrow held.

Day API ↩ Guides· daybrite.dev