port examples to new events

This commit is contained in:
Evan Almloff committed 2023-09-01 15:38:55 -05:00
1 parent dee92b83be
commit df222c121a
25 files changed
+55 -41

No files matched your search

+1 -1
View File
@@ -46,5 +46,5 @@ pub mod prelude {
pub use crate::eval::*;
pub use crate::events::*;
pub use crate::point_interaction::PointInteraction;
pub use keyboard_types::{self, Code, Key, Modifiers};
pub use keyboard_types::{self, Code, Key, Location, Modifiers};
}
+1 -1
View File
@@ -225,7 +225,7 @@ impl EventData {
fn test_back_and_forth() {
let data = HtmlEvent {
element: ElementId(0),
data: EventData::Mouse(SerializedMouseData::default().into()),
data: EventData::Mouse(SerializedMouseData::default()),
name: "click".to_string(),
bubbles: true,
};