core: Fix issue where unloaded buttons can still trigger mouse rollout events (close #1603)
This commit is contained in:
parent
c60dd208ea
commit
5ea3814097
|
@ -438,6 +438,7 @@ impl<'gc> TDisplayObject<'gc> for Button<'gc> {
|
||||||
let tracker = context.focus_tracker;
|
let tracker = context.focus_tracker;
|
||||||
tracker.set(None, context);
|
tracker.set(None, context);
|
||||||
}
|
}
|
||||||
|
self.set_removed(context.gc_context, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue