mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-20 01:21:16 +02:00
Don't hit any TrackPanel or Ruler cells when mouse is out of window
This commit is contained in:
@@ -3606,7 +3606,10 @@ auto AdornedRulerPanel::FindCell(int mouseX, int mouseY) -> FoundCell
|
||||
if (mayScrub && mScrubZone.Contains(mouseX, mouseY))
|
||||
return { mScrubbingCell, mScrubZone };
|
||||
|
||||
return { mQPCell, mInner };
|
||||
if (mInner.Contains(mouseX, mouseY))
|
||||
return { mQPCell, mInner };
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
wxRect AdornedRulerPanel::FindRect(const TrackPanelCell &cell)
|
||||
|
Reference in New Issue
Block a user