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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user