mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-04 17:49:45 +02:00
Bug 1419 - Restore "scrub indicator shows before we click in scrub ruler".
Restored Paul's original intention, which I inadvertently changed in my fix for Bug 1419. Moving into the scrub ruler shows the scrub indicator now even before we actually start scrubbing (or seeking). The tooltip is now seen as belonging to the scrub indicator rather than to the ruler. Additionally I show the indicator immediately on entry, rather than requiring a movement left or right first, which I think is better and I think the original version didn't.
This commit is contained in:
parent
57903233c5
commit
8a8b43d956
@ -2459,13 +2459,18 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
|
||||
}
|
||||
else if ( !HasCapture() && inScrubZone) {
|
||||
// mouse going down => we are (probably) seeking
|
||||
bool repaint_all = false;
|
||||
if (evt.LeftDown()) {
|
||||
//wxLogDebug("down");
|
||||
scrubber.MarkScrubStart(evt.m_x,
|
||||
TracksPrefs::GetPinnedHeadPreference(), false);
|
||||
UpdateStatusBarAndTooltips(StatusChoice::EnteringScrubZone);
|
||||
ShowQuickPlayIndicator();
|
||||
}
|
||||
else if( changeInZone ) {
|
||||
repaint_all = true;
|
||||
}
|
||||
|
||||
ShowQuickPlayIndicator(repaint_all);
|
||||
return;
|
||||
}
|
||||
else if ( mQuickPlayEnabled) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user