1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

TrackPanel simplifications; improved cursor handling...

... in cases such as:  dragging an envelope point, then hitting space to play,
which forces the drag to finish early.  If you move the mouse, cursor will
remain "ban", even while the mouse button remains down but no drag is really
happening.
This commit is contained in:
Paul Licameli
2017-06-08 17:27:41 -04:00
parent 114f5a4a63
commit d9a91c1431
3 changed files with 139 additions and 159 deletions

View File

@@ -22,12 +22,12 @@ struct TrackPanelMouseEvent
{
TrackPanelMouseEvent
( wxMouseEvent &event_, const wxRect &rect_, const wxSize &whole_,
TrackPanelCell *pCell_ = NULL, double steps_ = 0.0 )
TrackPanelCell *pCell_ )
: event{ event_ }
, rect{ rect_ }
, whole{ whole_ }
, pCell{ pCell_ }
, steps{ steps_ }
, steps{ 0 }
{
}