cargo fmt

This commit is contained in:
Adrian Woźniak 2022-06-13 13:00:28 +02:00
parent 77cd6e5739
commit b2ef4cc174
No known key found for this signature in database
GPG Key ID: 0012845A89C7352B

View File

@ -389,7 +389,10 @@ where
}
}
}
if allow_drag && response.dragged_by(PointerButton::Primary) && response.hover_pos().is_some() {
if allow_drag
&& response.dragged_by(PointerButton::Primary)
&& response.hover_pos().is_some()
{
let mut delta = response.drag_delta();
delta.x *= transform.dvalue_dpos()[0] as f32;
delta.y *= transform.dvalue_dpos()[1] as f32;