Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken mouse coordinates when there's padding on the canvas element #4729

Merged
merged 3 commits into from
Jun 28, 2024

Conversation

emilk
Copy link
Owner

@emilk emilk commented Jun 28, 2024

Also fixes touch input being wrong if the web page is scrolled.

@emilk emilk added bug Something is broken web Related to running Egui on the web eframe Relates to epi and eframe labels Jun 28, 2024
@emilk emilk merged commit 254dfc1 into master Jun 28, 2024
38 checks passed
@emilk emilk deleted the emilk/fix-web-pointer-pos branch June 28, 2024 11:02
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
…nt (emilk#4729)

* Closes emilk#4725

Also fixes touch input being wrong if the web page is scrolled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken eframe Relates to epi and eframe web Related to running Egui on the web
Projects
None yet
Development

Successfully merging this pull request may close these issues.

eframe web: mouse position is wrong when canvas has border or padding
1 participant