Skip to main content

move_refused

Function move_refused 

Source
pub fn move_refused(
    indexed: &IndexedDocument<'_>,
    shapes: &[Shape],
    delta: Vec2,
    moving: Moving,
) -> bool
Expand description

Whether moving shapes by delta would be refused.

The one resolver, so a drag’s preview and the commit it previews cannot come to different answers: a refusal the preview did not show is a gesture that undoes itself on release, in silence.