mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-25 20:14:31 +01:00
ui-panels: rustfmt the grip's drag-start condition
This commit is contained in:
1 parent
b634808ce4
commit
cee746e97c
1 file changed
+3
-1
@@ -167,7 +167,9 @@ impl<P: Clone + Send + Sync + 'static> Component for GroupGrip<P> {
|
||||
fn update(&mut self, cx: &mut Cx<'_, Self>) {
|
||||
self.double = cx.press().double_pressed();
|
||||
let phase = cx.press().phase;
|
||||
if self.movable && let PressPhase::DragStart { start, .. } = phase {
|
||||
if self.movable
|
||||
&& let PressPhase::DragStart { start, .. } = phase
|
||||
{
|
||||
start_group_drag(cx, self.unit.clone(), self.active, None, self.ghost.clone());
|
||||
self.started = Some(start.origin);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user