davidfig / pixi-viewport

A highly configurable viewport/2D camera designed to work with pixi.js
https://davidfig.github.io/pixi-viewport/
MIT License
1.04k stars 174 forks source link

Crash on dragging #356

Open rodighiero opened 2 years ago

rodighiero commented 2 years ago

I've to admit that it's a while I work on data and not with the interface itself, but one of the last updates broke the drag function and I don't understand why. As usual, I am working on a full-screen visualization whose code is pretty simple; the drag function is the one on the viewport. I include the code of the index.js and the build,

Thanks a lot, Dario

https://github.com/rodighiero/weather-map/blob/main/src/index.js https://rodighiero.github.io/weather-map/index.html

rodighiero commented 2 years ago

My problem is still unsolved, anyone who can help me please?

Screen Shot 2021-11-25 at 4 21 03 PM
rodighiero commented 2 years ago

It seems I have the same problem of #330 and #335, I downgrade to version 4.24 and the error disappeared.

phschaad commented 2 years ago

I am facing the same issue now, but a downgrade to 4.24 didn't fix it for me. What version of pixi are you using?

rodighiero commented 2 years ago

It's a while I am not coding, you can check my last configuration here https://github.com/rodighiero/weather-map/blob/main/package.json

phschaad commented 2 years ago

Thank you, I took your config as a starting point, though strangely enough it didn't work for me. For others arriving here via search, a configuration that worked for me:

Going any higher with pixi.js or pixi-viewport caused the problem to reappear. The issue seems to stem from the fact that pixi-viewport (probably after the typescript conversion) started relying on @pixi/* subpackages for dependencies.

9oelM commented 2 years ago

Yeah I am experiencing the same issue. For me though, using the latest version of pixi.js worked for me.

"pixi-viewport": "4.24",
"pixi.js": "^6.4.2",