Skip to content

Commit 5da3d36

Browse files
committed
Fix touch events not working for wasm builds
Pull in a winit patch to fix touch event positions to be relative to the HTML canvas element.
1 parent ee7f5d3 commit 5da3d36

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,6 @@ panic = "abort"
9292
[profile.dev]
9393
panic = "abort"
9494

95+
[patch.crates-io]
96+
# Pull in https://github.com/rust-windowing/winit/pull/2704
97+
winit = { git = "https://github.com/slint-ui/winit", branch = "simon/touch-event-position" }

0 commit comments

Comments
 (0)