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

Draggable game objects issue in concurrent active scenes #4249

Closed
probt opened this issue Dec 19, 2018 · 2 comments
Closed

Draggable game objects issue in concurrent active scenes #4249

probt opened this issue Dec 19, 2018 · 2 comments

Comments

@probt
Copy link

probt commented Dec 19, 2018

Version

  • Phaser Version: v3.15.1-FB

  • Operating system: MacOS 10.14.2

  • Browser: Chrome, FF, Safari

Description

I’ve come across an issue of having a game object’s drag events stop emitting when I have two scenes running actively, with draggable objects set up in each scene. Specifically, the issue occurs in the lower depth scene. I’m not sure if this a bug or not, or if I’m doing something wrong in my setup.

Example Test Code

https://codepen.io/paulrbt/pen/ebZRKy

Additional Information

I was testing a new button class, where the button is interactive as draggable and as a dropZone, to enable animation/tweening when dragging the pointer on and off the button. All works well in the top scene, but for any similar game object set up in the lower scene, the drag events only fire once then stop. In looking at the input for the game object, it looks like the dragState is getting stuck at 2.

@photonstorm
Copy link
Collaborator

Have replicated this locally and confirmed bug.

@photonstorm
Copy link
Collaborator

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.

photonstorm added a commit that referenced this issue Jan 4, 2019
…ing in parallel, with draggable objects in both of them. Only the top-most Scene would work fully. Items in the bottom Scene would never finish their drag cycle, causing them to get stuck. Fix #4249
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

2 participants