From 458bb7cc05261ca0a91ad8ff382c0749d358a4a9 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Tue, 29 Apr 2008 15:54:41 -0500 Subject: [PATCH] Improve selection movement for control points. --- Timeline/Control_Point.H | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Timeline/Control_Point.H b/Timeline/Control_Point.H index da0e267..1242e14 100644 --- a/Timeline/Control_Point.H +++ b/Timeline/Control_Point.H @@ -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; } }