Added more event listeners to dynatos_html.

This commit is contained in:
Filipe Rodrigues 2025-05-01 19:53:52 +01:00
parent 299495173f
commit f1e2764e50
Signed by: zenithsiz
SSH Key Fingerprint: SHA256:Mb5ppb3Sh7IarBO/sBTXLHbYEOz37hJAlslLQPPAPaU
2 changed files with 23 additions and 1 deletions

View File

@ -21,6 +21,7 @@ web-sys = { workspace = true, features = [
"Document",
"DragEvent",
"Element",
"FocusEvent",
"HtmlCanvasElement",
"HtmlElement",
"HtmlImageElement",
@ -28,6 +29,7 @@ web-sys = { workspace = true, features = [
"InputEvent",
"PointerEvent",
"PopStateEvent",
"SubmitEvent",
"Text",
"WheelEvent",
"Window",

View File

@ -98,7 +98,18 @@ pub mod ev {
// Imports
use {
super::EventListener,
web_sys::{ClipboardEvent, DragEvent, Event, InputEvent, PointerEvent, PopStateEvent, WheelEvent},
web_sys::{
ClipboardEvent,
DragEvent,
Event,
FocusEvent,
InputEvent,
MouseEvent,
PointerEvent,
PopStateEvent,
SubmitEvent,
WheelEvent,
},
};
macro define_events(
@ -134,6 +145,15 @@ pub mod ev {
/// `input` Event
Input(InputEvent) = "input";
/// `submit` Event
Submit(SubmitEvent) = "submit";
/// `blur` Event
Blur(FocusEvent) = "blur";
/// `dblclick` Event
DoubleClick(MouseEvent) = "dblclick";
/// `wheel` Event
Wheel(WheelEvent) = "wheel";