On Web, use the new WebCanvasWindowHandle (#3270)
This commit is contained in:
parent
2c15de7cf9
commit
8cd3aaa8a2
8 changed files with 54 additions and 20 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue