You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resize the window up and down and observe that the actors disappear and the platform does not stay at the bottom of the screen as expected. Actors are being marked as offscreen, the camera focus appears to change, and some odd scaling factor is being applied.
Expected Result
The platform in the above example should stay locked to the bottom of the screen.
Drawing canvas should scale with resize in fullscreen mode
Actors should not be marked offscreen during scaling like this
Actual Result
All of the above
Environment
Excalibur versions: master
Current Workaround
None
The text was updated successfully, but these errors were encountered:
eonarheim
added
the
bug
This issue describes undesirable, incorrect, or unexpected behavior
label
Dec 1, 2018
@justjoeyuk I've only noticed it in fullscreen, but any viewport modification I suspect may cause similar issues. Correct this may be a difficult issue to solve, I took a stab at it earlier and got maybe 1/2 way d38ddd1 Definitely feel free to take or leave anything I've done if you work on fixing this.
The steps to fix this may be:
Observe the viewport bounds for changes (maybe every frame or with a throttled window event)?
Correctly re-configure engine parameters to adjust to the new bounds
Potentially refactor the Engine.ts display mode processing (currently its a mess in there ☹️) Ideally we could extract out the display mode behavior into separate files (maybe using type object pattern?)
Excalibur does not seem to be handling fullscreen resizes very well, cam
Steps to Reproduce
See pen https://codepen.io/eonarheim/pen/oQmeLZ?editors=0010
Resize the window up and down and observe that the actors disappear and the platform does not stay at the bottom of the screen as expected. Actors are being marked as offscreen, the camera focus appears to change, and some odd scaling factor is being applied.
Expected Result
Actual Result
All of the above
Environment
Current Workaround
None
The text was updated successfully, but these errors were encountered: