From 64f18c7585e0f46334623ae0a2270c6a1f84e9e8 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Thu, 21 Feb 2008 03:38:35 -0600 Subject: [PATCH] Remove jitter from region track jumping. --- Region.C | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Region.C b/Region.C index 532a06e..82b80e3 100644 --- a/Region.C +++ b/Region.C @@ -229,13 +229,15 @@ Region::handle ( int m ) if ( Y > y() + h() ) { if ( _track->next() ) - _track->next()->add( this ); + if ( Y > _track->next()->y() ) + _track->next()->add( this ); } else if ( Y < y() ) { if ( _track->prev() ) - _track->prev()->add( this ); + if ( Y < _track->prev()->y() + _track->prev()->h() ) + _track->prev()->add( this ); } _track->redraw();