On Web, use the new WebCanvasWindowHandle (#3270)

This commit is contained in:
daxpedda authored and GitHub committed 2023-12-22 22:33:50 +01:00
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);