|
@@ -239,6 +239,7 @@ func (r *Root) sendPanels(x, y float32, evname string, ev interface{}) {
|
|
|
if found {
|
|
if found {
|
|
|
r.targets = append(r.targets, ipan)
|
|
r.targets = append(r.targets, ipan)
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ ipan.SetRoot(r)
|
|
|
// If OnCursorEnter previously sent, sends OnCursorLeave with a nil event
|
|
// If OnCursorEnter previously sent, sends OnCursorLeave with a nil event
|
|
|
if pan.cursorEnter {
|
|
if pan.cursorEnter {
|
|
|
pan.Dispatch(OnCursorLeave, nil)
|
|
pan.Dispatch(OnCursorLeave, nil)
|