From 7922aca921c65979fbc7555d33d787f7052cab23 Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Mon, 19 Aug 2019 16:11:38 -0700 Subject: [PATCH] core: Mouse pick in top-to-bottom order --- core/src/movie_clip.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/movie_clip.rs b/core/src/movie_clip.rs index 91cb9da6c..d42fc5e7b 100644 --- a/core/src/movie_clip.rs +++ b/core/src/movie_clip.rs @@ -413,7 +413,7 @@ impl<'gc> DisplayObject<'gc> for MovieClip<'gc> { _self_node: DisplayNode<'gc>, point: (Twips, Twips), ) -> Option> { - 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;