Skip to main content

process_system_scroll

Function process_system_scroll 

Source
pub fn process_system_scroll(
    delta: LogicalPosition,
    hit_scrollbar: bool,
) -> ScrollResult
Expand description

Dispatch a system scroll event and return a ScrollResult describing what happened.

This is the entry point used by headless integration tests and embedders that drive scroll programmatically. The richer per-document scroll handling lives in LayoutWindow::process_scroll; this helper packages a delta into a ScrollResult for return to callers so the result type is observable from the public API.