1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-29 08:43:56 +01:00

TrackPanelCell hit tests can return multiple results...

.. though only the first is used yet
This commit is contained in:
Paul Licameli
2017-06-29 10:34:57 -04:00
parent b3d62e2ab6
commit 8e44827980
32 changed files with 165 additions and 93 deletions

View File

@@ -904,7 +904,10 @@ void TrackPanel::HandleMotion( const TrackPanelMouseState &tpmState )
// Now do the
// UIHANDLE HIT TEST !
handle = newCell->HitTest(tpmState, GetProject());
auto targets = newCell->HitTest(tpmState, GetProject());
// No use, yet, of any but the first target
handle = targets.empty() ? UIHandlePtr{} : targets[0];
mLastCell = newCell;
mLastHitTest = handle;