mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
On Web, use the new WebCanvasWindowHandle (#3270)
This commit is contained in:
@@ -83,6 +83,7 @@ impl<T> EventLoopWindowTarget<T> {
|
||||
) {
|
||||
let canvas_clone = canvas.clone();
|
||||
let mut canvas = canvas.borrow_mut();
|
||||
#[cfg(any(feature = "rwh_04", feature = "rwh_05"))]
|
||||
canvas.set_attribute("data-raw-handle", &id.0.to_string());
|
||||
|
||||
canvas.on_touch_start(prevent_default);
|
||||
|
||||
Reference in New Issue
Block a user