Skip to content

Canvas doesn't dynamically resize #53

@simbleau

Description

@simbleau

When you resize the browser, you get distortion of the viewport.

Normally, and on page load, we get a ResizeEvent which allows us to set the canvas size:
image

However, on browser resize, we don't get these events anymore, leaving me unsure of how to resize the canvas and aspect ratio itself. For now I've added CSS rules on index.html to keep it fullscreen, but I'm not entirely sure how to fix this without ResizeEvents from winit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions