Skip to content

Conversation

@tye-exe
Copy link
Contributor

@tye-exe tye-exe commented Jan 30, 2026

Currently in firefox the display scaling is read as 2x what it should be. This causes issues as cursor position is still using the 1x scaling, and any egui applications being at 2x the desired scale.
This is a patchwork fix that detects is the browser is firefox by looking at the user agent (any of web devs that have a better knowledge of how to detect a firefox browser please let me know) and falls back to an alternate display size calculation that produces the expected 1x scaling.

@github-actions
Copy link

github-actions bot commented Jan 30, 2026

Preview available at https://egui-pr-preview.github.io/pr/7873-firefox-scaling
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

View snapshot changes at kitdiff

@tye-exe
Copy link
Contributor Author

tye-exe commented Jan 30, 2026

This is open as a draft due to me having issues with running the check script. I will be able to dedicate more time to trying to run the check script later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant