Skip to main content

drag_selection

Function drag_selection 

Source
pub fn drag_selection<T: Ord + Copy>(
    pressed: Range<T>,
    span: Range<T>,
) -> (T, T)
Expand description

The (anchor, head) a drag holds once the pointer is over span, the unit under it, from a press that selected pressed. All of pressed stays selected whichever way the drag goes.