-
Notifications
You must be signed in to change notification settings - Fork 1.2k
How to handle window size, and cursor position on web targets? #1491
Copy link
Copy link
Closed
Labels
B - bugDang, that shouldn't have happenedDang, that shouldn't have happenedC - needs investigationIssue must be confirmed and researchedIssue must be confirmed and researchedDS - webAffects the Web backend (WebAssembly/WASM)Affects the Web backend (WebAssembly/WASM)
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
B - bugDang, that shouldn't have happenedDang, that shouldn't have happenedC - needs investigationIssue must be confirmed and researchedIssue must be confirmed and researchedDS - webAffects the Web backend (WebAssembly/WASM)Affects the Web backend (WebAssembly/WASM)