1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-23 15:50:05 +02:00

Merge Bug926 -- do not scrub past right end of tracks

This commit is contained in:
Paul Licameli 2015-05-19 21:15:02 -04:00
commit 6c7604d2cf

View File

@ -2406,7 +2406,8 @@ bool TrackPanel::MaybeStartScrubbing(wxMouseEvent &event)
bool TrackPanel::ContinueScrubbing(wxCoord position, bool maySkip)
{
wxCoord leadPosition = position;
double newEnd = PositionToTime(leadPosition, GetLeftOffset());
double newEnd =
std::min(PositionToTime(leadPosition, GetLeftOffset()), mTracks->GetEndTime());
if (maySkip)
// Cause OnTimer() to suppress the speed display