pub(crate) fn run_drag(
points: &[(i32, i32)],
modifiers: &[u16],
out: &mut dyn FnMut(DragStep) -> Result<(), String>,
) -> Result<(), String>Expand description
Hold modifiers, press the button at the first point, move through the
rest, pause, and let go at the last. out does each step. Whatever was
pressed is let go again on every exit, including when a step fails: the
button first, then the modifiers in reverse, so a failed drag never leaves
one held. The first error is the one returned.