This commit is contained in:
Sasha Koshka 2024-05-17 15:36:49 -04:00
parent cd72ae5bdd
commit 996d747d45
1 changed files with 3 additions and 1 deletions

View File

@ -329,6 +329,8 @@ func (this *containerBox) recursiveRedo () {
}
func (this *containerBox) boxUnder (point image.Point, category eventCategory) anyBox {
if !point.In(this.bounds) { return nil }
if !this.capture[category] {
for _, box := range this.children {
candidate := box.(anyBox).boxUnder(point, category)
@ -336,7 +338,7 @@ func (this *containerBox) boxUnder (point image.Point, category eventCategory) a
}
}
return this.box.boxUnder(point, category)
return this
}
func (this *containerBox) propagate (callback func (anyBox) bool) bool {