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