Skip to main content

zoom_timeline_at

Function zoom_timeline_at 

Source
pub fn zoom_timeline_at(
    geo: &TimelineGeometry,
    local_x: f64,
    zoom_in: bool,
    zoom_factor: f64,
) -> TimelineViewport
Expand description

Compute the new viewport after a cursor-anchored zoom step (local_x pixels from the track left, cursor time fixed).