Browse Source

Make panning work.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
e1e1d43f61
2 changed files with 6 additions and 1 deletions
  1. +5
    -1
      Region.C
  2. +1
    -0
      Track.C

+ 5
- 1
Region.C 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;
}



+ 1
- 0
Track.C View File

@@ -170,6 +170,7 @@ Track::handle ( int m )

this->add( r );

redraw();
return 1;
}
case FL_MOVE:


Loading…
Cancel
Save