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:
commit
e14144b01f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user