diff --git a/Region.C b/Region.C index 1efa029..354ed0e 100644 --- a/Region.C +++ b/Region.C @@ -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; } diff --git a/Track.C b/Track.C index 9bc8fa8..bde8092 100644 --- a/Track.C +++ b/Track.C @@ -170,6 +170,7 @@ Track::handle ( int m ) this->add( r ); + redraw(); return 1; } case FL_MOVE: