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

Two strange interaction behavior #507

Open
zhouccccc opened this issue Nov 21, 2024 · 4 comments
Open

Two strange interaction behavior #507

zhouccccc opened this issue Nov 21, 2024 · 4 comments

Comments

@zhouccccc
Copy link

@danielbarion @lunarraid
I found another two strange interaction behavior. the latest code has been updated at here
https://codesandbox.io/p/sandbox/cm8z9t

you can reproduce them with next two points:
#1 After init --> drage the scene. you'll find that the entire scene doesn't follow the mouse cursor perfectly, and the movement path may even deviate

#2 After init --> zoom out the scene --> drage the scene. you'll find the bunny sprite suddenly flying off-view.

@lunarraid
Copy link
Contributor

@zhouccccc You're rendering the viewport directly, which isn't how it's really intended to be used. The app stage isn't designed to be transformed. If you instantiate a PixiJS app normally and use the stage, do you see the same behavior?

@zhouccccc
Copy link
Author

zhouccccc commented Nov 21, 2024

@zhouccccc You're rendering the viewport directly, which isn't how it's really intended to be used. The app stage isn't designed to be transformed. If you instantiate a PixiJS app normally and use the stage, do you see the same behavior?

If instantiate a PixiJS app and use the stage, it works as normal.
but I think it may be necessary to implement this feature for rendering the viewport directly ^_^

@lunarraid
Copy link
Contributor

PixiJS itself gets weird when you start messing with Stage transforms, so I think something would have to change there and not in this library.

@zhouccccc
Copy link
Author

PixiJS itself gets weird when you start messing with Stage transforms, so I think something would have to change there and not in this library.

This issue occurred when I upgraded to the latest version (v6). I didn't have this problem using v5. I suspect some updates in the new version make this issue happen

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