retire deprecated MouseEvent::InitMouseEvent (#34538)

Signed-off-by: Jay Wang <xdddxyyyxzzz123@gmail.com>
Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <yuweiwu@pm.me>
This commit is contained in:
Jay Wang 2024-12-10 00:24:54 +09:00 committed by GitHub
parent 4103421ba5
commit dd2fc75b71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 31 additions and 20 deletions

View file

@ -113,6 +113,10 @@ impl UIEvent {
}
self.detail.set(0_i32);
}
pub fn set_detail(&self, detail_: i32) {
self.detail.set(detail_);
}
}
impl UIEventMethods<crate::DomTypeHolder> for UIEvent {