Skip to main content

pan_timeline_by

Function pan_timeline_by 

Source
pub fn pan_timeline_by(
    geo: &TimelineGeometry,
    start_pan_ms: f64,
    delta_px: f64,
) -> TimelineViewport
Expand description

Compute the new viewport after dragging the track by delta_px pixels (zoom unchanged).