mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-10 14:46:24 +01:00
Further regularize the odd case of hit-test on the resizer region
This commit is contained in:
@@ -362,19 +362,15 @@ protected:
|
||||
// a crash, as it can take many seconds for large (eg. 10 track-hours) projects
|
||||
|
||||
// Find track info by coordinate
|
||||
enum class CellType { Label, Track, VRuler, Background };
|
||||
struct FoundCell {
|
||||
Track *pTrack;
|
||||
TrackPanelCell *pCell;
|
||||
CellType type;
|
||||
wxRect rect;
|
||||
};
|
||||
FoundCell FindCell(int mouseX, int mouseY);
|
||||
|
||||
void HandleCursor( wxMouseEvent *pEvent );
|
||||
void HandleCursor
|
||||
( const TrackPanelMouseEvent &tpmEvent,
|
||||
CellType cellType = CellType::Background );
|
||||
void HandleCursor( const TrackPanelMouseEvent &tpmEvent );
|
||||
|
||||
// If label, rectangle includes track control panel only.
|
||||
// If !label, rectangle includes all of that, and the vertical ruler, and
|
||||
@@ -569,9 +565,4 @@ enum : int {
|
||||
#pragma warning( pop )
|
||||
#endif
|
||||
|
||||
|
||||
//This constant determines the size of the vertical region (in pixels) around
|
||||
//the bottom of a track that can be used for vertical track resizing.
|
||||
#define TRACK_RESIZE_REGION 5
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user