Skip to content

Commit

Permalink
Panel: prevent other click side-effects when toggling accordion state
Browse files Browse the repository at this point in the history
  • Loading branch information
sliekens committed Jan 18, 2025
1 parent 3df7def commit c246e0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Blish HUD/Controls/Panel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ public void NavigateToBuiltPanel(BuildUIDelegate buildCall, object obj) {
protected override void OnClick(MouseEventArgs e) {
if (_canCollapse && _layoutHeaderBounds.Contains(this.RelativeMousePosition)) {
this.ToggleAccordionState();
} else {
base.OnClick(e);
}

base.OnClick(e);
}

protected override void OnChildAdded(ChildChangedEventArgs e) {
Expand Down

0 comments on commit c246e0b

Please sign in to comment.