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

Better implementation of switch from scrub to quick play; ...

... also, don't ever draw the scrub handle while dragging the quick play
region.
This commit is contained in:
Paul Licameli
2016-05-18 11:53:11 -04:00
parent bdb96f659c
commit 9e2916a80b
3 changed files with 39 additions and 37 deletions

View File

@@ -501,6 +501,11 @@ void Scrubber::Pause( bool paused )
mScrubHasFocus = !paused;
}
bool Scrubber::IsPaused() const
{
return !mScrubHasFocus;
}
void Scrubber::OnActivateOrDeactivateApp(wxActivateEvent &event)
{
if (event.GetActive())

View File

@@ -87,6 +87,7 @@ public:
static std::vector<wxString> GetAllUntranslatedStatusStrings();
void Pause(bool paused);
bool IsPaused() const;
private:
void DoScrub(bool scroll, bool seek);