mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Windowing: Reinstate old WindowFromPoint behaviour in ComponentPeer::contains
This reverts 515e9b9f89.
In order to avoid recursive calls through WM_NCHITTEST, we remove calls
to Component::contains in DocumentWindow::findControlAtPoint.
This commit is contained in:
parent
ad5a755b10
commit
fdf74a7477
3 changed files with 6 additions and 5 deletions
|
|
@ -341,7 +341,7 @@ auto DocumentWindow::findControlAtPoint (Point<float> pt) const -> WindowControl
|
|||
}
|
||||
|
||||
for (const auto& c : getChildren())
|
||||
if (c->contains (c->getLocalPoint (this, pt)))
|
||||
if (detail::ComponentHelpers::hitTest (*c, c->getLocalPoint (this, pt)))
|
||||
return WindowControlKind::client;
|
||||
|
||||
return WindowControlKind::caption;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue