mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 06:08:26 +00:00
fix formatting
This commit is contained in:
parent
62556b2c34
commit
bd387d601c
2 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
use crate::geometry::{ClientPoint, Coordinates, ElementPoint, PagePoint, ScreenPoint};
|
||||
use crate::input_data::{MouseButton, MouseButtonSet};
|
||||
use crate::prelude::PointInteraction;
|
||||
|
||||
use dioxus_core::Event;
|
||||
use keyboard_types::Modifiers;
|
||||
|
||||
|
@ -132,7 +132,7 @@ impl HasMouseData for SerializedDragData {
|
|||
}
|
||||
|
||||
#[cfg(feature = "serialize")]
|
||||
impl PointInteraction for SerializedDragData {
|
||||
impl crate::prelude::PointInteraction for SerializedDragData {
|
||||
fn client_coordinates(&self) -> ClientPoint {
|
||||
self.mouse.client_coordinates()
|
||||
}
|
||||
|
|
|
@ -330,7 +330,9 @@ impl HtmlEventConverter for WebEventConverter {
|
|||
|
||||
fn convert_mounted_data(&self, event: &dioxus_html::PlatformEventData) -> MountedData {
|
||||
#[cfg(feature = "mounted")]
|
||||
{MountedData::from(downcast_event(event).element.clone())}
|
||||
{
|
||||
MountedData::from(downcast_event(event).element.clone())
|
||||
}
|
||||
#[cfg(not(feature = "mounted"))]
|
||||
{
|
||||
panic!("mounted events are not supported without the mounted feature on the dioxus-web crate enabled")
|
||||
|
|
Loading…
Add table
Reference in a new issue