Expand description
Scroll state and node implementation for cranpose.
This module provides the core scrolling components:
ScrollState: Holds scroll position and provides scroll control methodsScrollNode: Layout modifier that applies scroll offset to contentScrollElement: Element for creating ScrollNode instances
The actual Modifier.horizontal_scroll() and Modifier.vertical_scroll()
extension methods are defined in modifier/scroll.rs.
Structsยง
- Scroll
Element - Element for creating a ScrollNode.
- Scroll
Node - ScrollNode layout modifier that physically moves content based on scroll position. This is the component that actually reads ScrollState and applies the visual offset.
- Scroll
State - State object for scroll position tracking.