Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use window.outer_size on iOS (linebender#421)
As I understand it, on iOS the outer_size corresponds to the size of the window, meaning when the surface is rendered using inner_size(the safe/non-obscured size) the elements get stretched. There's an open issue in winit about clarifying/standardizing the different sizes, but until that's done switching to outer_size fixes the issue. The touch positions now also match the rendering Winit issue: rust-windowing/winit#2308 Fixes linebender#419 <details> <summary>Before</summary> ![xilem ios](https://github.com/linebender/xilem/assets/7433263/8bde0880-90e7-498b-b45c-c9964a0ae153) </details> <details> <summary>After</summary> ![ios after](https://github.com/linebender/xilem/assets/7433263/8f6703d3-bb99-4f42-a941-d936ca5da6cf) </details>
- Loading branch information