fix: incorrect WCO tooltip in RTL (#45425)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot] 2025-02-03 14:05:00 -05:00 committed by GitHub
parent cc6164fe27
commit 07bdef0370
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,8 @@ std::unique_ptr<WinCaptionButton> CreateCaptionButton(
} }
bool HitTestCaptionButton(WinCaptionButton* button, const gfx::Point& point) { bool HitTestCaptionButton(WinCaptionButton* button, const gfx::Point& point) {
return button && button->GetVisible() && button->bounds().Contains(point); return button && button->GetVisible() &&
button->GetMirroredBounds().Contains(point);
} }
} // anonymous namespace } // anonymous namespace