mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Bug1074: Drag or stretch label only with left button...
... and be sure it always makes an undo item
This commit is contained in:
@@ -1462,7 +1462,8 @@ bool LabelTrack::HandleMouse(const wxMouseEvent & evt,
|
||||
{
|
||||
//OverGlyph sets mMouseOverLabel to be the chosen label.
|
||||
int iGlyph = OverGlyph(evt.m_x, evt.m_y);
|
||||
mIsAdjustingLabel = iGlyph != 0;
|
||||
mIsAdjustingLabel = evt.Button(wxMOUSE_BTN_LEFT) &&
|
||||
iGlyph != 0;
|
||||
|
||||
// reset mouseXPos if the mouse is pressed in the text box
|
||||
mMouseXPos = -1;
|
||||
|
||||
Reference in New Issue
Block a user