mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-25 01:28:12 +08:00
Stop dragging after deselecting point with Shift key (#764)
Stop dragging after deselecting point with shift Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
9b67a96adf
commit
3c2bc04c3c
@@ -102,6 +102,8 @@ impl ShapeEditor {
|
|||||||
if let Ok(viewspace) = document.generate_transform_relative_to_viewport(shape_layer_path) {
|
if let Ok(viewspace) = document.generate_transform_relative_to_viewport(shape_layer_path) {
|
||||||
self.move_selected_points(mouse_position - viewspace.transform_point2(point_position), mouse_position, responses)
|
self.move_selected_points(mouse_position - viewspace.transform_point2(point_position), mouse_position, responses)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return Some(points);
|
||||||
} else {
|
} else {
|
||||||
responses.push_back(
|
responses.push_back(
|
||||||
Operation::DeselectManipulatorPoints {
|
Operation::DeselectManipulatorPoints {
|
||||||
@@ -110,10 +112,10 @@ impl ShapeEditor {
|
|||||||
}
|
}
|
||||||
.into(),
|
.into(),
|
||||||
);
|
);
|
||||||
points.retain(|x| *x != (shape_layer_path, manipulator_group_id, ManipulatorType::from_index(manipulator_point_index)))
|
points.retain(|x| *x != (shape_layer_path, manipulator_group_id, ManipulatorType::from_index(manipulator_point_index)));
|
||||||
}
|
|
||||||
|
|
||||||
return Some(points);
|
return None;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deselect all points if no nearby point
|
// Deselect all points if no nearby point
|
||||||
|
|||||||
Reference in New Issue
Block a user