DiceHowl Posted February 24, 2022 Share Posted February 24, 2022 Hi everyone! i made a new pixi project with pixi-viewport, which i based on this fullscreen demo: https://codesandbox.io/s/tb4qv https://tb4qv.csb.app/ Now i tested it on various smartphones, and on some phones (google pixl 3, samsung s10e, others...) its scale ration is distorted, so the red rectangle which should be a square is displayed higher than broad. Since its happening to the demo as well that i took as starting point, i think the problem should be reproducable there. Does anyone has an idea what could cause that? Greetings & thanks a lot for any idea! DiceHowl Quote Link to comment Share on other sites More sharing options...
DiceHowl Posted February 27, 2022 Author Share Posted February 27, 2022 Solved: No idea why but this solved the issue: const resolution = Math.min(window.devicePixelRatio, 2); app = new PIXI.Application({ .... resolution: resolution || 1, antialias: resolution <= 1 } Try and error did it, any reasons why it worked are still appreciated :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.