1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-20 23:51:18 +01:00

Implement scrolling for the note track vertical ruler

Command zooms in/out, and shift moves up and down.
This commit is contained in:
Pokechu22
2017-06-30 00:02:51 -07:00
committed by Paul Licameli
parent 58bd03419a
commit 0e21143cee
3 changed files with 41 additions and 6 deletions

View File

@@ -912,7 +912,7 @@ void NoteTrack::VScroll(int start, int end)
}
// Zoom the note track, centering the pitch at centerY,
// amount is 1 for zoom in, and -1 for zoom out
// positive amounts zoom in; negative amounts zoom out
void NoteTrack::Zoom(const wxRect &rect, int centerY, int amount)
{
// Construct track rectangle to map pitch to screen coordinates