add touch data to touch events
This commit is contained in:
1 parent
b47064165e
commit
c10700c962
8 files changed
+339
-160
No files matched your search
@@ -198,15 +198,17 @@ impl InteractionLocation for PointerData {
|
||||
self.inner.screen_coordinates()
|
||||
}
|
||||
|
||||
fn element_coordinates(&self) -> ElementPoint {
|
||||
self.inner.element_coordinates()
|
||||
}
|
||||
|
||||
fn page_coordinates(&self) -> PagePoint {
|
||||
self.inner.page_coordinates()
|
||||
}
|
||||
}
|
||||
|
||||
impl InteractionElementOffset for PointerData {
|
||||
fn element_coordinates(&self) -> ElementPoint {
|
||||
self.inner.element_coordinates()
|
||||
}
|
||||
}
|
||||
|
||||
impl ModifiersInteraction for PointerData {
|
||||
fn modifiers(&self) -> Modifiers {
|
||||
self.inner.modifiers()
|
||||
@@ -319,15 +321,18 @@ impl InteractionLocation for SerializedPointerData {
|
||||
self.point_data.screen_coordinates()
|
||||
}
|
||||
|
||||
fn element_coordinates(&self) -> ElementPoint {
|
||||
self.point_data.element_coordinates()
|
||||
}
|
||||
|
||||
fn page_coordinates(&self) -> PagePoint {
|
||||
self.point_data.page_coordinates()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "serialize")]
|
||||
impl InteractionElementOffset for SerializedPointerData {
|
||||
fn element_coordinates(&self) -> ElementPoint {
|
||||
self.point_data.element_coordinates()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "serialize")]
|
||||
impl ModifiersInteraction for SerializedPointerData {
|
||||
fn modifiers(&self) -> Modifiers {
|
||||
|
||||
Reference in new issue
Block a user