diff --git a/Audio_Track.C b/Audio_Track.C index fe2daae..90d7ce1 100644 --- a/Audio_Track.C +++ b/Audio_Track.C @@ -87,8 +87,7 @@ Audio_Track::handle ( int m ) return 0; } - // FIXME: account for width of track header. - Region *r = new Region( c, this, timeline->xoffset + timeline->x_to_ts( Fl::event_x() ) ); + Region *r = new Region( c, this, timeline->xoffset + timeline->x_to_ts( Fl::event_x() - x() ) ); redraw(); return 1;