Skip to main content

wasm_zoom_timeline_at

Function wasm_zoom_timeline_at 

Source
pub fn wasm_zoom_timeline_at(
    geometry: &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 is pixels from the track’s left edge).