Improve selection movement for control points.

This commit is contained in:
Jonathan Moore Liles 2008-04-29 15:54:41 -05:00
parent c464c73ab9
commit 458bb7cc05
1 changed files with 6 additions and 1 deletions

View File

@ -128,6 +128,11 @@ public:
break;
case FL_DRAG:
{
track()->sort();
if ( selected() )
break;
int Y = Fl::event_y() - parent()->y();
if ( Y >= 0 && Y < parent()->h() )
@ -135,7 +140,7 @@ public:
_y = (float)Y / parent()->h();
redraw();
}
track()->sort();
break;
}
}