1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-09 06:06:24 +01:00

Fix some display problems in scrolling play: mitigate scrollbar flashing, and...

... modified click on the transcription toolbar button leaves the button with
the correct appearance.
This commit is contained in:
Paul Licameli
2016-05-03 23:37:59 -04:00
parent ad2b4c3446
commit c9b5f6bc37
2 changed files with 27 additions and 4 deletions

View File

@@ -479,13 +479,17 @@ void TranscriptionToolBar::OnPlaySpeed(wxCommandEvent & WXUNUSED(event))
auto doubleClicked = button->IsDoubleClicked();
button->ClearDoubleClicked();
if (doubleClicked)
if (doubleClicked) {
GetActiveProject()->GetPlaybackScroller().Activate(true);
// Pop up the button
SetButton(false, button);
}
else {
// Let control have precedence over shift
const bool cutPreview = mButtons[TTB_PlaySpeed]->WasControlDown();
const bool looped = !cutPreview &&
button->WasShiftDown();
button->WasShiftDown();
PlayAtSpeed(looped, cutPreview);
}
}