mirror of
https://github.com/Zenithsiz/dynatos.git
synced 2026-02-04 18:56:13 +00:00
Added more event listeners to dynatos_html.
This commit is contained in:
parent
299495173f
commit
f1e2764e50
@ -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",
|
||||
|
||||
@ -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";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user