egui icon indicating copy to clipboard operation
egui copied to clipboard

DPI mouse interaction scaling problem on web

Open frnsys opened this issue 1 month ago • 0 comments

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:

  1. Load https://www.egui.rs/#demo in the latest version of Chrome (Google Chrome 143.0.7499.40)
  2. Open the dev tools and the responsive tool
  3. Set the DPR to 2 or 3
  4. 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

frnsys avatar Dec 05 '25 09:12 frnsys