diff --git a/src/platform_impl/web/window.rs b/src/platform_impl/web/window.rs index f8ef6cd0..7a8f740a 100644 --- a/src/platform_impl/web/window.rs +++ b/src/platform_impl/web/window.rs @@ -169,7 +169,8 @@ impl Window { CursorIcon::RowResize => "row-resize", }; *self.previous_pointer.borrow_mut() = text; - self.canvas.set_attribute("cursor", text); + self.canvas + .set_attribute("style", &format!("cursor: {}", text)); } #[inline]