Skip to content

How to handle window size, and cursor position on web targets? #1491

@SimonWoodburyForget

Description

@SimonWoodburyForget

I've ran into some pretty major issues when trying to handle window (aka: canvas) size on web targets. First i can't get window resize events, because CSS is quietly resizing the window to fit the screen, which means I need to call web-sys and see if it was resized every time before drawing, but now this means the cursors position is incorrect, because a canvas can have a higher or lower resolution then the actual window.

Metadata

Metadata

Assignees

Labels

B - bugDang, that shouldn't have happenedC - needs investigationIssue must be confirmed and researchedDS - webAffects the Web backend (WebAssembly/WASM)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions