1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-10 00:51:13 +02:00

Minor fix to my commit e030225

Forgot that the initial speed can be negative.
This commit is contained in:
David Bailes 2020-02-12 14:04:59 +00:00
parent 2430582e90
commit d28c2417db

View File

@ -608,6 +608,8 @@ bool Scrubber::StartKeyboardScrubbing(double time0, bool backwards)
mOptions.minStutterTime = mOptions.delay;
mOptions.initSpeed = GetKeyboardScrubbingSpeed();
if (backwards)
mOptions.initSpeed *= -1.0;
mOptions.minSpeed = ScrubbingOptions::MinAllowedScrubSpeed();
mOptions.maxSpeed = ScrubbingOptions::MaxAllowedScrubSpeed();
mOptions.minTime = 0;