Skip to content

Commit

Permalink
fix: Check for subpane viz for GetPosInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
ja-he committed Oct 30, 2022
1 parent ef3543a commit 3f48d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ui/panes/composite.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (p *Composite) Dimensions() (x, y, w, h int) {
// GetPositionInfo returns information on a requested position in this pane.
func (p *Composite) GetPositionInfo(x, y int) ui.PositionInfo {
for _, pane := range p.drawables {
if util.NewRect(pane.Dimensions()).Contains(x, y) {
if pane.IsVisible() && util.NewRect(pane.Dimensions()).Contains(x, y) {
return pane.GetPositionInfo(x, y)
}
}
Expand Down

0 comments on commit 3f48d61

Please sign in to comment.