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

Repeated Pointer Events in Phaser with Overlapping HTML Elements #6697

Closed
laineus opened this issue Dec 24, 2023 · 1 comment
Closed

Repeated Pointer Events in Phaser with Overlapping HTML Elements #6697

laineus opened this issue Dec 24, 2023 · 1 comment

Comments

@laineus
Copy link

laineus commented Dec 24, 2023

Version

  • Phaser Version:

v3.70.0 or less

  • Operating system:

Windows11, Ubuntu 22.04

  • Browser:

Google Chrome 120.0.6099.129
Touch device or Touch device emulator of Chrome dev tools

Description

When an HTML element overlaps the Canvas tag due to styles like 'position: absolute', the GameObject's pointer events are executed multiple times.

Example Test Code

Demo:
https://codepen.io/laineus/pen/RwdNNgJ

Additional Information

I believe this issue becomes problematic when using Phaser and HTML together to create a user interface.

Thank you.

@rgk
Copy link
Collaborator

rgk commented Feb 1, 2024

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants