Support click events on movie clips containing text fields (#9995)

Remove code that prevents click events from working on text fields within movie clips
This commit is contained in:
Jay Sackwild 2023-03-11 22:19:48 +00:00 committed by GitHub
parent 3a8ee003e4
commit 1deebc87e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 5 deletions

View File

@ -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()

View File

@ -0,0 +1,7 @@
[
{
"type": "MouseDown",
"pos": [41.0, 184.0],
"btn": "Left"
}
]

View File

@ -0,0 +1 @@
Hello world!

View File

@ -0,0 +1 @@
num_frames = 1