Skip to main content

ax_result

Function ax_result 

Source
pub fn ax_result(
    axis: Axis,
    before: f64,
    requested: f64,
    read_back: Option<f64>,
    cause: AxCause,
    step: &Step,
) -> Result<Outcome, AxFailure>
Expand description

The outcome of writing AXValue, or the reason it failed.

requested is the value Decision::AxScrollbar asked for and read_back is what the bar reports afterwards. A bar that reads back a different value than requested still counts as scrolled: the app may round to its own page, and that note is added as a second warning. The step’s own warnings are merged in, so a measurement that approximated or hit a content fits document surfaces in the response alongside the AX-fallback notes.