Remedy #4
This commit is contained in:
parent
cd72ae5bdd
commit
996d747d45
@ -329,6 +329,8 @@ func (this *containerBox) recursiveRedo () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *containerBox) boxUnder (point image.Point, category eventCategory) anyBox {
|
func (this *containerBox) boxUnder (point image.Point, category eventCategory) anyBox {
|
||||||
|
if !point.In(this.bounds) { return nil }
|
||||||
|
|
||||||
if !this.capture[category] {
|
if !this.capture[category] {
|
||||||
for _, box := range this.children {
|
for _, box := range this.children {
|
||||||
candidate := box.(anyBox).boxUnder(point, category)
|
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 {
|
func (this *containerBox) propagate (callback func (anyBox) bool) bool {
|
||||||
|
Reference in New Issue
Block a user