mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-14 16:46:28 +01:00
Implement drag-scrub, compatibly with the existing move-scrub...
Also fix scroll-scrub and remove obsolete mouse preferences messages
This commit is contained in:
@@ -2326,6 +2326,17 @@ bool AdornedRulerPanel::IsWithinMarker(int mousePosX, double markerTime)
|
||||
|
||||
void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
|
||||
{
|
||||
if (mIgnoreMouseUp) {
|
||||
if (evt.Dragging())
|
||||
return;
|
||||
else if (evt.ButtonUp()) {
|
||||
mIgnoreMouseUp = false;
|
||||
return;
|
||||
}
|
||||
else
|
||||
mIgnoreMouseUp = false;
|
||||
}
|
||||
|
||||
// PRL: why do I need these two lines on Windows but not on Mac?
|
||||
if (evt.ButtonDown(wxMOUSE_BTN_ANY))
|
||||
SetFocus();
|
||||
@@ -2654,10 +2665,12 @@ void AdornedRulerPanel::HandleQPRelease(wxMouseEvent &evt)
|
||||
if (mDoubleClick)
|
||||
return;
|
||||
|
||||
HideQuickPlayIndicator();
|
||||
|
||||
if (HasCapture())
|
||||
ReleaseMouse();
|
||||
else
|
||||
return;
|
||||
|
||||
HideQuickPlayIndicator();
|
||||
|
||||
mCaptureState = CaptureState{};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user