mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-14 16:46:28 +01:00
Remove double-click handling for scrolling play/record
This commit is contained in:
@@ -85,7 +85,6 @@ array of Ruler::Label.
|
||||
#include "../prefs/TracksPrefs.h"
|
||||
|
||||
//#define SCRUB_ABOVE
|
||||
#define RULER_DOUBLE_CLICK
|
||||
|
||||
using std::min;
|
||||
using std::max;
|
||||
@@ -2378,15 +2377,7 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef RULER_DOUBLE_CLICK
|
||||
if (evt.LeftDClick()) {
|
||||
mDoubleClick = true;
|
||||
HandleQPDoubleClick(evt, mousePosX);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
if (evt.LeftDown()) {
|
||||
mDoubleClick = false;
|
||||
HandleQPClick(evt, mousePosX);
|
||||
HandleQPDrag(evt, mousePosX);
|
||||
ShowQuickPlayIndicator();
|
||||
@@ -2402,11 +2393,6 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
|
||||
}
|
||||
}
|
||||
|
||||
void AdornedRulerPanel::HandleQPDoubleClick(wxMouseEvent &evt, wxCoord mousePosX)
|
||||
{
|
||||
mProject->GetControlToolBar()->StartScrolling();
|
||||
}
|
||||
|
||||
void AdornedRulerPanel::HandleQPClick(wxMouseEvent &evt, wxCoord mousePosX)
|
||||
{
|
||||
// Temporarily unlock locked play region
|
||||
@@ -2540,9 +2526,6 @@ void AdornedRulerPanel::HandleQPDrag(wxMouseEvent &event, wxCoord mousePosX)
|
||||
|
||||
void AdornedRulerPanel::HandleQPRelease(wxMouseEvent &evt)
|
||||
{
|
||||
if (mDoubleClick)
|
||||
return;
|
||||
|
||||
if (HasCapture())
|
||||
ReleaseMouse();
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user