Remove jitter from region track jumping.
This commit is contained in:
parent
ef305848c9
commit
64f18c7585
2
Region.C
2
Region.C
|
@ -229,12 +229,14 @@ Region::handle ( int m )
|
|||
if ( Y > y() + h() )
|
||||
{
|
||||
if ( _track->next() )
|
||||
if ( Y > _track->next()->y() )
|
||||
_track->next()->add( this );
|
||||
}
|
||||
else
|
||||
if ( Y < y() )
|
||||
{
|
||||
if ( _track->prev() )
|
||||
if ( Y < _track->prev()->y() + _track->prev()->h() )
|
||||
_track->prev()->add( this );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue