1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-08 20:52:09 +01:00

Further regularize the odd case of hit-test on the resizer region

This commit is contained in:
Paul Licameli
2017-06-16 16:49:49 -04:00
parent 34026d19fd
commit a94eb75b4e
4 changed files with 74 additions and 55 deletions

View File

@@ -391,3 +391,17 @@ void TrackPanelResizeHandle::OnProjectChange(AudacityProject *pProject)
UIHandle::OnProjectChange(pProject);
}
TrackPanelResizerCell &TrackPanelResizerCell::Instance()
{
static TrackPanelResizerCell instance;
return instance;
}
HitTestResult TrackPanelResizerCell::HitTest
(const TrackPanelMouseEvent &event, const AudacityProject *pProject)
{
return {
TrackPanelResizeHandle::HitPreview( mBetweenTracks ),
&TrackPanelResizeHandle::Instance()
};
}