Skip to content

DPI mouse interaction scaling problem on web #7755

@frnsys

Description

@frnsys

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

recording_2025-12-05-10.10.50.mp4.trimmed.mp4

Desktop (please complete the following information):

  • OS: Linux (OpenSUSE Tumbleweed, Wayland)
  • Browser Google Chrome 143.0.7499.40
  • Version 0.33.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions