Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: Propagate events to children in the reverse order #9295

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Toad06
Copy link
Member

@Toad06 Toad06 commented Jan 24, 2023

...when the event is not an event type used by Buttons.

Fixes #8357 (here's an edited version with traces that are now displayed in the correct order) while making sure it doesn't break the Fight mini-game in Zizzo Challenge. I haven't checked if this is also the correct behavior in AVM2 though.

...when this is not an event type used by Buttons. Fixes ruffle-rs#8357.
@Dinnerbone
Copy link
Contributor

Let's please add tests for this

@Lord-McSweeney
Copy link
Collaborator

Is the issue with #7783 similar?

@@ -180,7 +180,12 @@ pub trait TInteractiveObject<'gc>:
) -> ClipEventResult {
if event.propagates() {
if let Some(container) = self.as_displayobject().as_container() {
for child in container.iter_render_list() {
let children = if event.is_button_event() {
container.iter_render_list().collect::<Vec<_>>()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, didn't look into correctness of this, but we definitely don't wanna allocate Vecs for this dynamically.

@danielhjacobs danielhjacobs added A-core Area: Core player, where no other category fits T-fix Type: Bug fix (in something that's supposed to work already) labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core player, where no other category fits T-fix Type: Bug fix (in something that's supposed to work already)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gowling - You cannot hit the crabs
5 participants