Fix event handling of trackwidgets when scrolled.
This commit is contained in:
parent
f5f19db5a9
commit
50680c6063
2
Track.C
2
Track.C
|
@ -54,7 +54,7 @@ Track::event_region ( void )
|
||||||
|
|
||||||
for ( list <Region *>::iterator r = _regions.begin(); r != _regions.end(); r++ )
|
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() );
|
int W = timeline.ts_to_x( (*r)->length() );
|
||||||
|
|
||||||
if ( Fl::event_x() > X && Fl::event_x() < X + W )
|
if ( Fl::event_x() > X && Fl::event_x() < X + W )
|
||||||
|
|
Loading…
Reference in New Issue