mirror of
https://github.com/storytold/winit.git
synced 2026-11-29 09:44:58 +01:00
On Web, use the new WebCanvasWindowHandle (#3270)
This commit is contained in:
1 parent
2c15de7cf9
commit
8cd3aaa8a2
8 files changed
+54
-20
No files matched your search
@@ -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