Fix as web event (#3178)
This commit is contained in:
1 parent
416811ba3a
commit
5186d8dded
15 files changed
+16
-32
No files matched your search
@@ -105,7 +105,6 @@ impl WebEventExt for dioxus_html::TouchData {
|
||||
|
||||
#[inline(always)]
|
||||
fn try_as_web_event(&self) -> Option<web_sys::TouchEvent> {
|
||||
self.downcast::<Synthetic<web_sys::TouchEvent>>()
|
||||
.map(|e| e.event.clone())
|
||||
self.downcast::<web_sys::TouchEvent>().cloned()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user