Fix up merged PRs: Edit Points hits select their shape on right click; Hyperlink sound fields in #713's tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-14 13:11:36 -04:00
co-authored by Claude Opus 5.5
parent 8a56ce8340
commit edaef792e0
4 changed files with 14 additions and 4 deletions
+9 -1
View File
@@ -972,7 +972,15 @@ impl Session {
}
let hit = self.hit_test(p, tol);
let id = match &hit {
Some(Hit::Shape { id, .. } | Hit::Resize { id, .. } | Hit::Rotate { id } | Hit::Adjust { id, .. } | Hit::LineEnd { id, .. }) => Some(*id),
Some(
Hit::Shape { id, .. }
| Hit::Resize { id, .. }
| Hit::Rotate { id }
| Hit::Adjust { id, .. }
| Hit::LineEnd { id, .. }
| Hit::Handle { id, .. }
| Hit::Vertex { id, .. },
) => Some(*id),
None => None,
};
if !id.is_some_and(|id| st.selection.shapes.contains(&id)) {
+1 -1
View File
@@ -20,7 +20,7 @@ fn shape(p: &mut Presentation, name: &str, text: &str, x: f64, y: f64, w: f64, h
}
fn link_to(slide: SlideId) -> Option<Hyperlink> {
Some(Hyperlink { action: Action::Slide { slide }, tooltip: String::new(), highlight_click: false })
Some(Hyperlink { action: Action::Slide { slide }, tooltip: String::new(), highlight_click: false, sound: None, stop_sound: false })
}
/// Clicking `trigger` makes `target` disappear.