-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
I've noticed that the InputCapturingState of the panels returns an incorrect value when the panel is collapsed.
For example:
With mouse hovering over expanded panel, the state is correctly identified as InputCapturingStateHover (mouse cursor not shown, but is next to "Hi-Res" in "Demo Window"):
With "Demo Window" collapsed, but the mouse cursor where the Demo Window would have been:
The issue seems to be with the bounds calculation here:
Line 99 in 7d29b6e
| if pt.In(cnt.layout.Bounds) { |
A fix would be to subtract cnt.layout.BodyBounds.Dy() from cnt.layout.Bounds.Max.Y.
I will submit a PR shortly.
Thanks.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working

