diff --git a/core/src/display_object/movie_clip.rs b/core/src/display_object/movie_clip.rs index c9e4a3f84731..1f4fbb5f69af 100644 --- a/core/src/display_object/movie_clip.rs +++ b/core/src/display_object/movie_clip.rs @@ -2974,11 +2974,6 @@ impl<'gc> TInteractiveObject<'gc> for MovieClip<'gc> { continue; } - // Clicking static text is ignored - if matches!(child, DisplayObject::Text(_)) { - continue; - } - let mut res = if let Some(child) = child.as_interactive() { child.mouse_pick_avm2(context, point, require_button_mode) } else if child.as_interactive().is_none() diff --git a/tests/tests/swfs/avm2/movieclip_text_mousedown/input.json b/tests/tests/swfs/avm2/movieclip_text_mousedown/input.json new file mode 100644 index 000000000000..147b62084786 --- /dev/null +++ b/tests/tests/swfs/avm2/movieclip_text_mousedown/input.json @@ -0,0 +1,7 @@ +[ + { + "type": "MouseDown", + "pos": [41.0, 184.0], + "btn": "Left" + } +] \ No newline at end of file diff --git a/tests/tests/swfs/avm2/movieclip_text_mousedown/output.txt b/tests/tests/swfs/avm2/movieclip_text_mousedown/output.txt new file mode 100644 index 000000000000..cd0875583aab --- /dev/null +++ b/tests/tests/swfs/avm2/movieclip_text_mousedown/output.txt @@ -0,0 +1 @@ +Hello world! diff --git a/tests/tests/swfs/avm2/movieclip_text_mousedown/test.fla b/tests/tests/swfs/avm2/movieclip_text_mousedown/test.fla new file mode 100644 index 000000000000..1567a2544c22 Binary files /dev/null and b/tests/tests/swfs/avm2/movieclip_text_mousedown/test.fla differ diff --git a/tests/tests/swfs/avm2/movieclip_text_mousedown/test.swf b/tests/tests/swfs/avm2/movieclip_text_mousedown/test.swf new file mode 100644 index 000000000000..98fb504b427a Binary files /dev/null and b/tests/tests/swfs/avm2/movieclip_text_mousedown/test.swf differ diff --git a/tests/tests/swfs/avm2/movieclip_text_mousedown/test.toml b/tests/tests/swfs/avm2/movieclip_text_mousedown/test.toml new file mode 100644 index 000000000000..2708ada71a1d --- /dev/null +++ b/tests/tests/swfs/avm2/movieclip_text_mousedown/test.toml @@ -0,0 +1 @@ +num_frames = 1 \ No newline at end of file