port examples to new events
This commit is contained in:
1 parent
dee92b83be
commit
df222c121a
25 files changed
+55
-41
No files matched your search
@@ -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};
|
||||
}
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user