Skip to main content

slider_fraction

Function slider_fraction 

Source
pub fn slider_fraction(
    event: &DragMoveEvent<SliderDrag>,
    id: impl Into<ElementId>,
    cx: &App,
) -> Option<f32>
Expand description

Where a slider drag lands on the track it is asked about, or None when the gesture belongs to another slider. id is the one that element carries.