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

Bug 1508 - Scrubbing: Release mouse to exit Scrub Mode started by click & drag in Scrub Ruler 'no longer working'

It WAS working, just not the way QA wanted, because releasing mouse click when in the ruler and on the first seek continued the seek/scrub cycle.  Introduced a 'mInOneShotMode' variable to complete the baroque behaviour in the way that was requested.  Also updated tool tip code to reflect the one-shot and non one-shot difference in tooltip and status.
This commit is contained in:
James Crook
2016-09-08 19:02:55 +01:00
parent bf06b0485f
commit 315679dad5
3 changed files with 18 additions and 2 deletions

View File

@@ -194,6 +194,8 @@ Scrubber::Scrubber(AudacityProject *project)
, mProject(project)
, mPoller { std::make_unique<ScrubPoller>(*this) }
, mOptions {}
, mInOneShotMode( false )
{
if (wxTheApp)
wxTheApp->Connect

View File

@@ -138,6 +138,9 @@ public:
void Pause(bool paused);
bool IsPaused() const;
void CheckMenuItems();
// Bug 1508
bool IsOneShotSeeking()const { return mInOneShotMode && IsScrubbing();};
bool mInOneShotMode;
private:
void DoScrub(bool seek);