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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user