Make panning work.
This commit is contained in:
parent
372ceb4375
commit
e1e1d43f61
6
Region.C
6
Region.C
|
@ -189,12 +189,16 @@ Region::handle ( int m )
|
||||||
int d = (ox + X) - x();
|
int d = (ox + X) - x();
|
||||||
long td = timeline.x_to_ts( d );
|
long td = timeline.x_to_ts( d );
|
||||||
|
|
||||||
|
nframes_t W = _end - _start;
|
||||||
|
|
||||||
if ( td > 0 && os < td )
|
if ( td > 0 && os < td )
|
||||||
_start = 0;
|
_start = 0;
|
||||||
else
|
else
|
||||||
_start = os - td;
|
_start = os - td;
|
||||||
|
|
||||||
// redraw();
|
_end = _start + W;
|
||||||
|
|
||||||
|
_track->redraw();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue