Make 'fit' zoom action reset the viewport position.
This commit is contained in:
parent
14e1025db2
commit
54fe22e2d4
|
@ -1302,6 +1302,7 @@ Timeline::zoom ( float secs )
|
||||||
void
|
void
|
||||||
Timeline::zoom_fit ( void )
|
Timeline::zoom_fit ( void )
|
||||||
{
|
{
|
||||||
|
xposition( 0 );
|
||||||
zoom( length() / (float)sample_rate() );
|
zoom( length() / (float)sample_rate() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue