1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00

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

* Closes https://github.com/emilk/egui/issues/4725

Also fixes touch input being wrong if the web page is scrolled.
This commit is contained in:
Emil Ernerfeldt
2024-06-28 13:02:36 +02:00
committed by GitHub
parent a6937f79f3
commit 254dfc1ebc
4 changed files with 38 additions and 16 deletions

View File

@@ -241,8 +241,8 @@ web-sys = { workspace = true, features = [
"NodeList",
"Performance",
"ResizeObserver",
"ResizeObserverEntry",
"ResizeObserverBoxOptions",
"ResizeObserverEntry",
"ResizeObserverOptions",
"ResizeObserverSize",
"Storage",