Make panning work.

This commit is contained in:
Jonathan Moore Liles 2008-02-20 05:48:42 -06:00
parent 372ceb4375
commit e1e1d43f61
2 changed files with 6 additions and 1 deletions

View File

@ -189,12 +189,16 @@ Region::handle ( int m )
int d = (ox + X) - x();
long td = timeline.x_to_ts( d );
nframes_t W = _end - _start;
if ( td > 0 && os < td )
_start = 0;
else
_start = os - td;
// redraw();
_end = _start + W;
_track->redraw();
return 1;
}

View File

@ -170,6 +170,7 @@ Track::handle ( int m )
this->add( r );
redraw();
return 1;
}
case FL_MOVE: