We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e118ec commit d8be1cbCopy full SHA for d8be1cb
widget.go
@@ -42,8 +42,15 @@ func (c *Context) pointingOver(bounds image.Rectangle) bool {
42
}
43
currentRoot := c.currentRootContainer()
44
for i := len(c.rootContainers) - 1; i >= 0; i-- {
45
- if p.In(c.rootContainers[i].layout.Bounds) {
46
- return c.rootContainers[i] == currentRoot
+ cnt := c.rootContainers[i]
+ if !cnt.open {
47
+ if cnt == currentRoot {
48
+ return false
49
+ }
50
+ continue
51
52
+ if p.In(cnt.layout.Bounds) {
53
+ return cnt == currentRoot
54
55
56
return false
0 commit comments