Skip to content

Improve zooming behavior #4212

@LWinterberg

Description

@LWinterberg

Zooming with the scrollwheel in Audacity got identified as being much too quick and unrestricted, resulting in easy overscrolling into either the sample level or the days-and-weeks level.

Another issue is that zooming near the start of the track may accidentally cause vertical zooms instead, as reported in #5096.

  • Set the zoom factor for mousewheel scrolling to 4th-root of 2. The button zooms stay as-is. Reduce zoom factor when zooming with mouse wheel #4243
  • Limit the range accessible to the user to 2x the project length. (so for a 10 minute project, the range between 0:00:00 and 0:20:00 can be reached).
  • When scrolling with the wheel, always center zooming in and out on the mouse cursor, with two exceptions:
    a) if zooming would reveal an area beyond the limit, the zoom center gets moved (this is the same behavior as observed currently at the 0:00:00 mark)
    b) (nice-to-have) when the cursor is within 5px of a range selection edge or point selection, center the zoom on the edge/point instead and align the center with the cursor
  • Add a zoom sensitivity preference
  • When changing tempo, adjust the zoom such that the current view stays visible despite taking up different amounts of time

For clarity, there currently are some rules in place when zooming with selections and one which attempts to keep at least 1px of project visible in the zoom window at all times. These rules can be removed.

Initial design link: https://zpl.io/ewND3ZN

Metadata

Metadata

Assignees

Labels

Enhancement RequestOr feature requests. Open-ended requests are better suited for discussions.P3Low Priorityfeature tweaksmall changes in functionality

Projects

Status

Implemented

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions