1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-14 08:36:27 +01:00

Avoid assertions if you hit R while dragging in the ruler, then left click again

This commit is contained in:
Paul Licameli
2016-04-30 12:49:34 -04:00
parent b30093a606
commit c87bc48de3

View File

@@ -2109,8 +2109,11 @@ bool AdornedRulerPanel::IsWithinMarker(int mousePosX, double markerTime)
void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
{
// Disable mouse actions on Timeline while recording.
if (mIsRecording)
if (mIsRecording) {
if (HasCapture())
ReleaseMouse();
return;
}
const bool inScrubZone =
// only if scrubbing is allowed now