ui: Graph Editor follows the timeline time zoom; zoom buttons and slider clicks work
The Timeline footer's zoom-out / zoom-in mountain icons were painted but not interactive, and the zoom slider only reacted to drags (a click on the track did nothing) and set the zoom without the whole-comp clamp. The icons are now buttons (timeline.zoomOutButton / timeline.zoomInButton, one = / - step), the slider jumps on click, and both go through set_zoom, centred on the CTI. The layer bars and the Graph Editor share one time zoom (TimelineState start / pps, as in After Effects); regression tests drive = / -, the buttons, the slider and the navigator over the control channel in both views and check switching views keeps the zoom. Co-Authored-By: Claude <noreply@anthropic.com> (cherry picked from commit 2ee0fb656ff6bd16eed6857be10495d9f30e3a64) (cherry picked from commit f1997d32d4c51b58467a04944889131fd741a22a) (cherry picked from commit 1c25aeb51d37357b4b37857858db4dbea246b13a) (cherry picked from commit 81d7fcccfc91f76f7b9640cbb7d3f75dcea56e30)
This commit is contained in:
@@ -588,7 +588,7 @@ pub fn invoke(app: &mut EffectcraftApp, ctx: &egui::Context, id: &str, params: V
|
||||
app.ui.viewer.fast_preview = on;
|
||||
}
|
||||
"timeline.zoomIn" | "timeline.zoomOut" => {
|
||||
let k = if id == "timeline.zoomIn" { 1.5 } else { 1.0 / 1.5 };
|
||||
let k = if id == "timeline.zoomIn" { crate::panels::timeline::ZOOM_STEP } else { 1.0 / crate::panels::timeline::ZOOM_STEP };
|
||||
crate::panels::timeline::zoom(app, ctx, k);
|
||||
return Ok(Value::Null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user