Skip to content

Commit 162e2b1

Browse files
authored
Merge pull request #616 from saschanaz/no-uievent
Use Event for scroll/select events
2 parents 98254e8 + 871037b commit 162e2b1

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

baselines/dom.generated.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5381,11 +5381,11 @@ interface GlobalEventHandlersEventMap {
53815381
"ratechange": Event;
53825382
"reset": Event;
53835383
"resize": UIEvent;
5384-
"scroll": UIEvent;
5384+
"scroll": Event;
53855385
"securitypolicyviolation": SecurityPolicyViolationEvent;
53865386
"seeked": Event;
53875387
"seeking": Event;
5388-
"select": UIEvent;
5388+
"select": Event;
53895389
"stalled": Event;
53905390
"submit": Event;
53915391
"suspend": Event;
@@ -5616,7 +5616,7 @@ interface GlobalEventHandlers {
56165616
* Fires when the user repositions the scroll box in the scroll bar on the object.
56175617
* @param ev The event.
56185618
*/
5619-
onscroll: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
5619+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
56205620
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
56215621
/**
56225622
* Occurs when the seek operation ends.
@@ -5632,7 +5632,7 @@ interface GlobalEventHandlers {
56325632
* Fires when the current selection changes.
56335633
* @param ev The event.
56345634
*/
5635-
onselect: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
5635+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
56365636
/**
56375637
* Occurs when the download has stopped.
56385638
* @param ev The event.
@@ -16832,10 +16832,10 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler
1683216832
"readystatechange": ProgressEvent;
1683316833
"reset": Event;
1683416834
"resize": UIEvent;
16835-
"scroll": UIEvent;
16835+
"scroll": Event;
1683616836
"seeked": Event;
1683716837
"seeking": Event;
16838-
"select": UIEvent;
16838+
"select": Event;
1683916839
"stalled": Event;
1684016840
"storage": StorageEvent;
1684116841
"submit": Event;
@@ -18077,7 +18077,7 @@ declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
1807718077
* Fires when the user repositions the scroll box in the scroll bar on the object.
1807818078
* @param ev The event.
1807918079
*/
18080-
declare var onscroll: ((this: Window, ev: UIEvent) => any) | null;
18080+
declare var onscroll: ((this: Window, ev: Event) => any) | null;
1808118081
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
1808218082
/**
1808318083
* Occurs when the seek operation ends.
@@ -18093,7 +18093,7 @@ declare var onseeking: ((this: Window, ev: Event) => any) | null;
1809318093
* Fires when the current selection changes.
1809418094
* @param ev The event.
1809518095
*/
18096-
declare var onselect: ((this: Window, ev: UIEvent) => any) | null;
18096+
declare var onselect: ((this: Window, ev: Event) => any) | null;
1809718097
/**
1809818098
* Occurs when the download has stopped.
1809918099
* @param ev The event.

inputfiles/addedTypes.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@
148148
},
149149
{
150150
"name": "scroll",
151-
"type": "UIEvent"
151+
"type": "Event"
152152
},
153153
{
154154
"name": "select",
155-
"type": "UIEvent"
155+
"type": "Event"
156156
},
157157
{
158158
"name": "wheel",

0 commit comments

Comments
 (0)