Timeline: Don't let sequence widgets swallow events meant for track header.
Closes #177
This commit is contained in:
parent
abde7f3bb5
commit
c0113d1e7a
|
@ -179,6 +179,9 @@ Sequence::widget_at ( nframes_t ts, int Y )
|
||||||
Sequence_Widget *
|
Sequence_Widget *
|
||||||
Sequence::event_widget ( void )
|
Sequence::event_widget ( void )
|
||||||
{
|
{
|
||||||
|
if ( Fl::event_x() < drawable_x() )
|
||||||
|
return NULL;
|
||||||
|
|
||||||
nframes_t ets = timeline->xoffset + timeline->x_to_ts( Fl::event_x() - drawable_x() );
|
nframes_t ets = timeline->xoffset + timeline->x_to_ts( Fl::event_x() - drawable_x() );
|
||||||
return widget_at( ets, Fl::event_y() );
|
return widget_at( ets, Fl::event_y() );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue