1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 08:09:41 +02:00

Merge: Bug928, and probably Bug925, when trying to scrub left of time zero

This commit is contained in:
Paul Licameli 2015-05-19 21:47:18 -04:00
commit e14144b01f

View File

@ -2407,7 +2407,10 @@ bool TrackPanel::ContinueScrubbing(wxCoord position, bool maySkip)
{
wxCoord leadPosition = position;
double newEnd =
std::min(PositionToTime(leadPosition, GetLeftOffset()), mTracks->GetEndTime());
std::max(0.0,
std::min(PositionToTime(leadPosition, GetLeftOffset()),
mTracks->GetEndTime()
));
if (maySkip)
// Cause OnTimer() to suppress the speed display