Fix event handling of trackwidgets when scrolled.

This commit is contained in:
Jonathan Moore Liles 2008-02-20 05:29:31 -06:00
parent f5f19db5a9
commit 50680c6063
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ Track::event_region ( void )
for ( list <Region *>::iterator r = _regions.begin(); r != _regions.end(); r++ )
{
int X = timeline.ts_to_x( (*r)->offset() ) - timeline.xoffset;
int X = timeline.ts_to_x( (*r)->offset() - timeline.xoffset );
int W = timeline.ts_to_x( (*r)->length() );
if ( Fl::event_x() > X && Fl::event_x() < X + W )