Skip to content

FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust

Merge upstream/main into fix/ripple-delete

Oskar24d555eb7cf3
diff --cc contributors/people.toml
index 976aaa4ce,4af53d71c..92d8f4b70
--- a/contributors/people.toml
+++ b/contributors/people.toml
@@@ -57,5 -57,7 +57,10 @@@ sync_github_name = fals
[people.liangforstudy]
sync_github_name = true
+ [people.maxm11]
+ real_name = "Max Murphy"
+ display_name = "Max Murphy"
+ sync_github_name = false
++
+[people.ossini]
+sync_github_name = true
diff --cc crates/ui-egui/src/panels/timeline.rs
index ca2276061,17a5eef96..ca77bbe7d
--- a/crates/ui-egui/src/panels/timeline.rs
+++ b/crates/ui-egui/src/panels/timeline.rs
@@@ -2022,17 -2074,15 +2099,23 @@@ fn interact(app: &mut FilmcraftApp, ui
}
}
(_, Grab::Other(Hit::Transition { .. })) => None,
- (_, Grab::Other(Hit::Empty { track })) => {
+ // empty space: an empty stretch of a track, or no track at all (below the tracks, between
+ // the video and audio tracks, #683)
- (_, Grab::Other(Hit::Empty { .. } | Hit::None)) if layout.content.contains(p) => {
++ (_, Grab::Other(hit @ (Hit::Empty { .. } | Hit::None))) if layout.content.contains(p) => {
if resp.drag_started() {
Some(Drag::Marquee { start: p })
} else {
app.session.state.selection.clear();
app.session.state.edit_points.clear();
app.session.state.transition_selection.clear();
+ // empty time between clips: select the gap, for Delete to close it (#648, #668)
- if app.session.execute("timeline.selectGap", json!({"track": track.0, "time": t.0})).is_err() {
++ let gap = match hit {
++ Hit::Empty { track } => app.session.execute("timeline.selectGap", json!({"track": track.0, "time": t.0})).is_ok(),
++ _ => false,
++ };
++ if !gap {
+ app.session.state.gap_selection = None;
+ }
None
}
}