core: Mouse pick in top-to-bottom order

This commit is contained in:
Mike Welsh 2019-08-19 16:11:38 -07:00
parent 59c9385cb7
commit 7922aca921
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ impl<'gc> DisplayObject<'gc> for MovieClip<'gc> {
_self_node: DisplayNode<'gc>,
point: (Twips, Twips),
) -> Option<DisplayNode<'gc>> {
for child in self.children.values() {
for child in self.children.values().rev() {
let result = child.read().mouse_pick(*child, point);
if result.is_some() {
return result;