1
0
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:
Paul Licameli
2015-08-08 15:27:39 -04:00
parent c787683859
commit 2091185b07

View File

@@ -1462,7 +1462,8 @@ bool LabelTrack::HandleMouse(const wxMouseEvent & evt,
{ {
//OverGlyph sets mMouseOverLabel to be the chosen label. //OverGlyph sets mMouseOverLabel to be the chosen label.
int iGlyph = OverGlyph(evt.m_x, evt.m_y); 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 // reset mouseXPos if the mouse is pressed in the text box
mMouseXPos = -1; mMouseXPos = -1;