Skip to content

Commit 1deebc8

Browse files
authored
Support click events on movie clips containing text fields (#9995)
Remove code that prevents click events from working on text fields within movie clips
1 parent 3a8ee00 commit 1deebc8

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

core/src/display_object/movie_clip.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2974,11 +2974,6 @@ impl<'gc> TInteractiveObject<'gc> for MovieClip<'gc> {
29742974
continue;
29752975
}
29762976

2977-
// Clicking static text is ignored
2978-
if matches!(child, DisplayObject::Text(_)) {
2979-
continue;
2980-
}
2981-
29822977
let mut res = if let Some(child) = child.as_interactive() {
29832978
child.mouse_pick_avm2(context, point, require_button_mode)
29842979
} else if child.as_interactive().is_none()
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{
3+
"type": "MouseDown",
4+
"pos": [41.0, 184.0],
5+
"btn": "Left"
6+
}
7+
]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello world!
Binary file not shown.
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
num_frames = 1

0 commit comments

Comments
 (0)