Closed potdemort closed 3 years ago
Hi @potdemort,
You're absolutely welcome! 😉
We've done quite some improvements on handling the resolution, have you tried v6.0.6
(LTS) perhaps?
Btw, it's totally fine to use a custom app and assign it to the AppProvider
(like in your example), but we've added some fixes in the Stage
component that handles resolution changes better:
Auto update resolution based on media query
Reset interaction manager
Auto render on reconcile commits
May I ask why you're not using the <Stage>
component?
I'll close this issue for now as I believe this issue is not related to react-pixi, if you believe it's otherwise we can always reopen it. Thanks!
Hey @inlet,
Actually, I'm using the <Stage/>
component, it is located in my <Viewport/>
. Sorry for missing that.
It turned out my assumption was correct, my app configuration is ignored somehow. So I just cleared it and managed to fix the issue by supplying autoDensity: true
to my <Stage/>
component. Here is my stage configuration:
const STAGE_OPTIONS: _ReactPixi.ApplicationOptions = {
transparent: true,
antialias: true,
autoDensity: true,
};
BTW I've also installed v6.0.6
(LTS) as you proposed.
So finally I was managed to fix my issue! Thank you so much for helping 🙂 Keep on rocking with your great library! 🤘
Hello! First of all, thanks for you great library! Amazing work 👏
Description
Decided to update to the latest version of the library and got an unexpected behaviour after that. Starting from v5.0.2 my app became zoomed a lot. I assume there are some troubles with resolution.
According to your release note I assumed that I should be able to fix it by supplying
autoDensity: false
to my App. I tried and it did absolutely nothing. I tried to change my stage dimensions and it did nothing as well.Also I should probably note that I'm using your library along with pixi-viewport and I tried to change dimensions of my viewport without no luck as well.
I think there might be troubles with my app configuration. I'm starting to think that it is simply ignored. Here's my configuration:
Additional info
@inlet/react-pixi
version: 5.0.2React
version: 16.13.1ReactDOM
version: 16.13.1PIXI
version: 5.3.5pixi-viewport
version: 4.12.0