mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-11 15:16:27 +01:00
Simplify logic of track control panel click to rearrange...
... Rearrange drag is now simply the default of all other hit tests. The comment, as to the purpose of the removed call to TrackSelFunc, is obsolete, because clicks on hidden buttons and sliders have recently been disabled. The mention of "the area left of the minimize button" is obsolete because there is no such area any more after 2.2.0 layout changes. Just before this commit, click in the minimize button but near the left edge did not minimize, but started a track rearrange drag! That should not be so.
This commit is contained in:
@@ -482,11 +482,6 @@ protected:
|
||||
virtual bool CloseFunc(Track * t, wxRect rect, int x, int y);
|
||||
virtual bool PopupFunc(Track * t, wxRect rect, int x, int y);
|
||||
|
||||
// TrackSelFunc, unlike the other *Func methods, returns true if the click is not
|
||||
// set up to be handled, but click is on the sync-lock icon or the blank area to
|
||||
// the left of the minimize button, and we want to pass it forward to be a track select.
|
||||
virtual bool TrackSelFunc(Track * t, wxRect rect, int x, int y);
|
||||
|
||||
virtual bool MuteSoloFunc(Track *t, wxRect rect, int x, int f, bool solo);
|
||||
virtual bool MinimizeFunc(Track *t, wxRect rect, int x, int f);
|
||||
virtual bool GainFunc(Track * t, wxRect rect, wxMouseEvent &event,
|
||||
|
||||
Reference in New Issue
Block a user