Skip to main content

Module scroll_state

Module scroll_state 

Source
Expand description

Pure scroll state management

This module provides:

  • Smooth scroll animations with easing
  • Event source classification for scroll events
  • Scrollbar geometry and hit-testing
  • ExternalScrollId mapping for WebRender integration

Structs§

AnimatedScrollState
The complete scroll state for a single node (with animation support)
FrameScrollInfo
Summary of scroll-related events that occurred during a frame
ScrollEvent
Scroll event to be processed with source tracking
ScrollManager
Manages all scroll state and animations for a window
ScrollTickResult
Result of a scroll tick, indicating what actions are needed
ScrollbarHit
Result of a scrollbar hit-test
ScrollbarState
Scrollbar geometry state (calculated per frame, used for hit-testing and rendering)

Enums§

ScrollbarComponent
Which component of a scrollbar was hit during hit-testing

Functions§

apply_easing
Apply an easing function to a normalized time value (0.0 to 1.0). Used by ScrollAnimation::tick() for smooth scroll animations.

Type Aliases§

ScrollStates