1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

New method of TrackShifter, simplify ClipMoveState::DoSlideHorizontal...

... Also the clips to shift within a WaveTrack are tested all at once, more
simply
This commit is contained in:
Paul Licameli
2020-09-18 08:40:54 -04:00
parent 764773479e
commit c98285c544
6 changed files with 96 additions and 76 deletions

View File

@@ -659,8 +659,7 @@ double DoClipMove
auto desiredT0 = viewInfo.OffsetTimeByPixels( t0, ( right ? 1 : -1 ) );
auto desiredSlideAmount = pShifter->HintOffsetLarger( desiredT0 - t0 );
auto hSlideAmount =
state.DoSlideHorizontal( desiredSlideAmount, trackList );
auto hSlideAmount = state.DoSlideHorizontal( desiredSlideAmount );
// update t0 and t1. There is the possibility that the updated
// t0 may no longer be within the clip due to rounding errors,