Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/native-dom/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,3 +518,9 @@ impl InteractionLocation for NativeWheelData {
PagePoint::new(self.0.page_x() as f64, self.0.page_y() as f64)
}
}

pub fn synthetic_click_event(node: &Node, modifiers: Modifiers) -> Box<dyn Any> {
Box::new(NativePointerData(
node.synthetic_click_event_data(modifiers),
))
}
2 changes: 1 addition & 1 deletion packages/native-dom/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mod mutation_writer;
mod write_once_attr;
pub use blitz_dom::DocumentConfig;
pub use dioxus_document::DioxusDocument;
pub use events::NodeHandle;
pub use events::{NodeHandle, synthetic_click_event};
pub use write_once_attr::{CustomWidgetAttr, SubDocumentAttr};

use blitz_dom::{LocalName, Namespace, QualName, ns};
Expand Down
Loading