Hack a fix for drag scrolling.

This commit is contained in:
Jonathan Moore Liles 2008-04-27 07:34:33 -05:00
parent ae9e52ac77
commit bbc4376ee2
1 changed files with 6 additions and 4 deletions

View File

@ -463,11 +463,12 @@ Timeline::draw ( void )
/* return; */
/* } */
if ( (damage() & FL_DAMAGE_ALL)
||
damage() & FL_DAMAGE_EXPOSE )
if ( ( damage() & FL_DAMAGE_CHILD && damage() & FL_DAMAGE_SCROLL ) ||
( (damage() & FL_DAMAGE_ALL)
||
damage() & FL_DAMAGE_EXPOSE ) )
{
draw_box( box(), 0, 0, w(), h(), this == Fl::focus() ? color() : fl_darker( color() ) );
draw_box( box(), 0, 0, w(), h(), color() );
fl_push_clip( 0, rulers->y(), w(), rulers->h() );
draw_child( *rulers );
@ -535,6 +536,7 @@ Timeline::draw ( void )
if ( damage() & FL_DAMAGE_CHILD )
{
fl_push_clip( rulers->x(), rulers->y(), rulers->w(), rulers->h() );
update_child( *rulers );
fl_pop_clip();