mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-14 16:46:28 +01:00
Correct the display when switching to seek with left click
This commit is contained in:
@@ -493,7 +493,7 @@ void Scrubber::ContinueScrubbingUI()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool seek = Seeks();
|
const bool seek = Seeks() || TemporarilySeeks();
|
||||||
|
|
||||||
{
|
{
|
||||||
// Show the correct status for seeking.
|
// Show the correct status for seeking.
|
||||||
@@ -621,7 +621,7 @@ bool Scrubber::ShouldDrawScrubSpeed()
|
|||||||
return IsScrubbing() &&
|
return IsScrubbing() &&
|
||||||
!mPaused && (
|
!mPaused && (
|
||||||
// Draw for (non-scroll) scrub, sometimes, but never for seek
|
// Draw for (non-scroll) scrub, sometimes, but never for seek
|
||||||
(!Seeks() && mScrubSpeedDisplayCountdown > 0)
|
(!(Seeks() || TemporarilySeeks()) && mScrubSpeedDisplayCountdown > 0)
|
||||||
// Draw always for scroll-scrub and for scroll-seek
|
// Draw always for scroll-scrub and for scroll-seek
|
||||||
|| mSmoothScrollingScrub
|
|| mSmoothScrollingScrub
|
||||||
);
|
);
|
||||||
@@ -798,7 +798,7 @@ void ScrubbingOverlay::OnTimer(wxCommandEvent &event)
|
|||||||
// Where's the mouse?
|
// Where's the mouse?
|
||||||
position = trackPanel->ScreenToClient(position);
|
position = trackPanel->ScreenToClient(position);
|
||||||
|
|
||||||
const bool seeking = scrubber.Seeks();
|
const bool seeking = scrubber.Seeks() || scrubber.TemporarilySeeks();
|
||||||
|
|
||||||
// Find the text
|
// Find the text
|
||||||
const double maxScrubSpeed = GetScrubber().GetMaxScrubSpeed();
|
const double maxScrubSpeed = GetScrubber().GetMaxScrubSpeed();
|
||||||
|
|||||||
Reference in New Issue
Block a user