Module scroll

Module scroll 

Source
Expand description

Scroll state and node implementation for cranpose.

This module provides the core scrolling components:

  • ScrollState: Holds scroll position and provides scroll control methods
  • ScrollNode: Layout modifier that applies scroll offset to content
  • ScrollElement: Element for creating ScrollNode instances

The actual Modifier.horizontal_scroll() and Modifier.vertical_scroll() extension methods are defined in modifier/scroll.rs.

Structsยง

ScrollElement
Element for creating a ScrollNode.
ScrollNode
ScrollNode layout modifier that physically moves content based on scroll position. This is the component that actually reads ScrollState and applies the visual offset.
ScrollState
State object for scroll position tracking.