mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-17 08:40:27 +02:00
Enable scrubbing only when the scrub bar shows
This commit is contained in:
parent
5a5775c1c1
commit
adf4649f03
@ -2115,7 +2115,8 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
|
|||||||
const bool inScrubZone =
|
const bool inScrubZone =
|
||||||
// only if scrubbing is allowed now
|
// only if scrubbing is allowed now
|
||||||
mProject->GetScrubber().CanScrub() &&
|
mProject->GetScrubber().CanScrub() &&
|
||||||
evt.m_y < IndicatorBigHeight();
|
mShowScrubbing &&
|
||||||
|
mScrubZone.Contains(evt.GetPosition());
|
||||||
|
|
||||||
const bool changeInScrubZone = (inScrubZone != mPrevInScrubZone);
|
const bool changeInScrubZone = (inScrubZone != mPrevInScrubZone);
|
||||||
mPrevInScrubZone = inScrubZone;
|
mPrevInScrubZone = inScrubZone;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user