1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-14 17:14:07 +01:00

Keyboard scrubbing: faster change of direction

If one of the keyboard scrubbing keys is being held down, and the other keyboard scrubbing key is pressed:
1. With current behaviour, scrubbing in the other direction only starts when the original key is released - scrubbing stops and then starts in the other direction.
2. With the new behaviour, scrubbing immediately changes direction, and does not stop when the original key is released - scrubbing does not stop and then start again.

New behaviour:
If one of the keyboard scrubbing keys is being held down,
This commit is contained in:
David Bailes
2020-01-13 13:40:59 +00:00
parent 6fd29ad863
commit 64079c3f55
5 changed files with 41 additions and 10 deletions

View File

@@ -82,6 +82,10 @@ public:
{ return mKeyboardScrubbing; }
bool IsKeyboardScrubbing() const
{ return IsScrubbing() && mKeyboardScrubbing; }
void SetBackwards(bool backwards)
{ mBackwards = backwards;}
bool IsBackwards() const
{ return mBackwards;}
// True iff the user has clicked to start scrub and not yet stopped,
// but IsScrubbing() may yet be false
bool HasMark() const