Timeline: Don't let sequence widgets swallow events meant for track header.

Closes #177
This commit is contained in:
Jonathan Moore Liles 2015-09-30 17:37:27 -07:00
parent abde7f3bb5
commit c0113d1e7a
1 changed files with 3 additions and 0 deletions

View File

@ -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() );
} }