davidfig / pixi-cull

a library to visibly cull objects designed to work with pixi.js
MIT License
109 stars 15 forks source link

Code for live example throws error when clicking inside canvas #33

Open HamifSafiAlRonik opened 1 year ago

HamifSafiAlRonik commented 1 year ago

I tried the code in the live example and it shows properly but clicking anywhere throws this error image \ I'm using pixi 6.5.2. I need the ability for user to click in the viewport.

davidfig commented 1 year ago

Maybe something changed in pixi.js? The demo works off github when clicking, so it might be a mismatch between the library and the dependencies, or something in your click event. Trace it and let me know if it's a problem with the library.

HamifSafiAlRonik commented 1 year ago

Maybe something changed in pixi.js? The demo works off github when clicking, so it might be a mismatch between the library and the dependencies, or something in your click event. Trace it and let me know if it's a problem with the library.

Enforcing the versions in the github repo's yarn.lock worked(pixijs 6.0.1 and older version of pixiviewport). That said, there shouldn't have been any f***up since I initially tried the version you get from npm installing each of the pixi packages without version restrictions. You may want to investigate further.

davidfig commented 1 year ago

ok. thanks.