Timeline: the Time Navigator's ends drag to zoom; ; toggles frame level (#159)
The navigator drew handles on both ends but the whole bar was one drag area that scrolled. Each end is now a handle (timeline.navigator.start / .end) that moves that side of the visible span while the other stays: pulled in, the ruler zooms in; stretched to the track's ends, it shows the whole comp again. The middle still scrolls at the current zoom. ; (timeline.zoomFrameToggle) zooms in to frame level around the current time and, pressed again, back out to the whole comp. timeline.zoomFit stays as the plain fit command (no shortcut). Both go through set_zoom. Tests: navigator_ends_drag_to_zoom and semicolon_toggles_frame_level_and_the_whole_comp (real pointer drags). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
f936b1ff9c
commit
bfd1e974ea
@@ -43,7 +43,8 @@ pub const UI_COMMANDS: &[UiCommand] = &[
|
||||
uic!("view.theme.light", "Theme: Light", [], None),
|
||||
uic!("timeline.zoomIn", "Zoom In Time", [], Some("=")),
|
||||
uic!("timeline.zoomOut", "Zoom Out Time", [], Some("-")),
|
||||
uic!("timeline.zoomFit", "Zoom to Fit Comp", [], Some(";")),
|
||||
uic!("timeline.zoomFit", "Zoom to Fit Comp", [], None),
|
||||
uic!("timeline.zoomFrameToggle", "Zoom In to Frame Level / Out to the Whole Comp", [], Some(";")),
|
||||
uic!("timeline.graphEditor", "Graph Editor", [], Some("Shift+F3")),
|
||||
uic!("timeline.switchesModes", "Toggle Switches / Modes", [], Some("F4")),
|
||||
uic!("timeline.workAreaBegin", "Set Work Area Begin", [], Some("B")),
|
||||
@@ -440,6 +441,7 @@ pub fn invoke(app: &mut EffectcraftApp, ctx: &egui::Context, id: &str, params: V
|
||||
return Ok(Value::Null);
|
||||
}
|
||||
"timeline.zoomFit" => app.ui.timeline.pps = None,
|
||||
"timeline.zoomFrameToggle" => crate::panels::timeline::toggle_frame_zoom(app, ctx),
|
||||
"timeline.column" => {
|
||||
let col = params.get("column").and_then(Value::as_str).ok_or("timeline.column: need `column`")?;
|
||||
let on = params.get("visible").and_then(Value::as_bool).unwrap_or(!crate::panels::timeline::column_visible(&app.ui.timeline, col));
|
||||
|
||||
Reference in New Issue
Block a user