add auxclick and scrollend to dioxus events (#5095)
This commit is contained in:
1 parent
2da01937c1
commit
88120a7c39
7 files changed
+13
-5
No files matched your search
@@ -136,6 +136,9 @@ impl_event![
|
||||
|
||||
/// pointerout
|
||||
onpointerout
|
||||
|
||||
/// auxclick
|
||||
onauxclick
|
||||
];
|
||||
|
||||
impl PointerData {
|
||||
|
||||
@@ -177,4 +177,7 @@ impl_event! {
|
||||
|
||||
/// onscroll
|
||||
onscroll
|
||||
|
||||
/// onscrollend
|
||||
onscrollend
|
||||
}
|
||||
@@ -94,7 +94,7 @@ fn deserialize_raw(name: &str, data: &serde_json::Value) -> Result<EventData, se
|
||||
// Pointer
|
||||
"pointerlockchange" | "pointerlockerror" | "pointerdown" | "pointermove" | "pointerup"
|
||||
| "pointerover" | "pointerout" | "pointerenter" | "pointerleave" | "gotpointercapture"
|
||||
| "lostpointercapture" => Pointer(de(data)?),
|
||||
| "lostpointercapture" | "auxclick" => Pointer(de(data)?),
|
||||
|
||||
// Selection
|
||||
"selectstart" | "selectionchange" | "select" => Selection(de(data)?),
|
||||
@@ -106,7 +106,7 @@ fn deserialize_raw(name: &str, data: &serde_json::Value) -> Result<EventData, se
|
||||
"resize" => Resize(de(data)?),
|
||||
|
||||
// Scroll
|
||||
"scroll" => Scroll(de(data)?),
|
||||
"scroll" | "scrollend" => Scroll(de(data)?),
|
||||
|
||||
// Visible
|
||||
"visible" => Visible(de(data)?),
|
||||
|
||||
Reference in new issue
Block a user