mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-26 11:36:58 -06:00
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:
co-authored by
Claude Opus 5.5
parent
8a56ce8340
commit
edaef792e0
@@ -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)) {
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user