egui
egui copied to clipboard
DPI mouse interaction scaling problem on web
Describe the bug
When using the Chrome dev tools responsive tool I noticed that for DPRs 2 and 3 the graphics scale correctly but not the mouse interaction. I'm not certain if this is an issue with egui itself or with the Chrome dev tools.
To Reproduce Steps to reproduce the behavior:
- Load https://www.egui.rs/#demo in the latest version of Chrome (
Google Chrome 143.0.7499.40) - Open the dev tools and the responsive tool
- Set the DPR to 2 or 3
- Reload the page
Expected behavior Mouse interaction should scale along with the graphics
Screenshots
https://github.com/user-attachments/assets/83852c41-94a1-45d1-a45b-2122e5c5455e
Desktop (please complete the following information):
- OS: Linux (OpenSUSE Tumbleweed, Wayland)
- Browser Google Chrome 143.0.7499.40
- Version 0.33.2