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

Bug: Events are firing twice when we have dynamic and static mode #10441

Open
danielbarion opened this issue Apr 11, 2024 · 0 comments
Open

Bug: Events are firing twice when we have dynamic and static mode #10441

danielbarion opened this issue Apr 11, 2024 · 0 comments
Assignees
Labels
🕷 Bug Verified that it’s actually a legit bug that exists in the current release.

Comments

@danielbarion
Copy link
Contributor

danielbarion commented Apr 11, 2024

Current Behavior

When we have eventMode = 'static' and eventMode = 'dynamic' in the same app, the events fire twice.

Expected Behavior

When we have eventMode = 'static' and eventMode = 'dynamic' in the same app, the events should fire only once.

Steps to Reproduce

  1. Go to https://pixijs.com/8.x/playground?exampleId=events.logger
  2. On the following code:
    // Enable interactivity everywhere!
    app.stage.eventMode = 'static';
    app.stage.hitArea = app.screen;
    whiteBox.eventMode = 'static';
    blackBox.eventMode = 'static';
  1. Change any of the event modes to be dynamic:
    // Enable interactivity everywhere!
    app.stage.eventMode = 'static';
    app.stage.hitArea = app.screen;
    whiteBox.eventMode = 'dynamic';
    blackBox.eventMode = 'static';

Wait it gets reflected into the playground, the events are now firing twice.

The playground already edited

Another simple example: https://www.pixiplayground.com/#/edit/exDzbrsXsLvgdbWm0iZFG

Environment

Possible Solution

No response

Additional Information

No response

@Zyie Zyie self-assigned this Apr 12, 2024
@Zyie Zyie added the 🕷 Bug Verified that it’s actually a legit bug that exists in the current release. label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕷 Bug Verified that it’s actually a legit bug that exists in the current release.
Projects
None yet
Development

No branches or pull requests

2 participants