Move homogeneous saved Scenario selections as a group

This commit is contained in:
2026-09-24 15:40:23 -07:00
parent 3b2bb8ba78
commit 3b113e5316
14 changed files with 1673 additions and 119 deletions
+14 -1
View File
@@ -2233,7 +2233,20 @@ impl canvas::Program<Message> for Scene {
return self
.selection_action(Intent::Choose(target, Choice::Toggle));
}
if self.is_group() && self.is_selected(hit.id) {
let group_spacing_hit = self.coordinate_input
&& self.spacing_stamp.is_some()
&& matches!(
context.representation,
scenario_layout::Representation::Saved { .. }
)
&& matches!(
hit.role,
SceneHitRole::LifelineHeader
| SceneHitRole::MessageBody
| SceneHitRole::MessageLabel
);
if self.is_group() && self.is_selected(hit.id) && !group_spacing_hit
{
state.group_press = Some(ScenarioGroupPress {
context: *selection_context,
snapshot: snapshot.clone(),