Skip to content

Commit 871037b

Browse files
committed
use Event for scroll/select events
1 parent f0d597c commit 871037b

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
@@ -5336,11 +5336,11 @@ interface GlobalEventHandlersEventMap {
53365336
"ratechange": Event;
53375337
"reset": Event;
53385338
"resize": UIEvent;
5339-
"scroll": UIEvent;
5339+
"scroll": Event;
53405340
"securitypolicyviolation": SecurityPolicyViolationEvent;
53415341
"seeked": Event;
53425342
"seeking": Event;
5343-
"select": UIEvent;
5343+
"select": Event;
53445344
"stalled": Event;
53455345
"submit": Event;
53465346
"suspend": Event;
@@ -5571,7 +5571,7 @@ interface GlobalEventHandlers {
55715571
* Fires when the user repositions the scroll box in the scroll bar on the object.
55725572
* @param ev The event.
55735573
*/
5574-
onscroll: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
5574+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
55755575
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
55765576
/**
55775577
* Occurs when the seek operation ends.
@@ -5587,7 +5587,7 @@ interface GlobalEventHandlers {
55875587
* Fires when the current selection changes.
55885588
* @param ev The event.
55895589
*/
5590-
onselect: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
5590+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
55915591
/**
55925592
* Occurs when the download has stopped.
55935593
* @param ev The event.
@@ -16467,10 +16467,10 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler
1646716467
"readystatechange": ProgressEvent;
1646816468
"reset": Event;
1646916469
"resize": UIEvent;
16470-
"scroll": UIEvent;
16470+
"scroll": Event;
1647116471
"seeked": Event;
1647216472
"seeking": Event;
16473-
"select": UIEvent;
16473+
"select": Event;
1647416474
"stalled": Event;
1647516475
"storage": StorageEvent;
1647616476
"submit": Event;
@@ -17699,7 +17699,7 @@ declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
1769917699
* Fires when the user repositions the scroll box in the scroll bar on the object.
1770017700
* @param ev The event.
1770117701
*/
17702-
declare var onscroll: ((this: Window, ev: UIEvent) => any) | null;
17702+
declare var onscroll: ((this: Window, ev: Event) => any) | null;
1770317703
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
1770417704
/**
1770517705
* Occurs when the seek operation ends.
@@ -17715,7 +17715,7 @@ declare var onseeking: ((this: Window, ev: Event) => any) | null;
1771517715
* Fires when the current selection changes.
1771617716
* @param ev The event.
1771717717
*/
17718-
declare var onselect: ((this: Window, ev: UIEvent) => any) | null;
17718+
declare var onselect: ((this: Window, ev: Event) => any) | null;
1771917719
/**
1772017720
* Occurs when the download has stopped.
1772117721
* @param ev The event.

inputfiles/addedTypes.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@
9696
},
9797
{
9898
"name": "scroll",
99-
"type": "UIEvent"
99+
"type": "Event"
100100
},
101101
{
102102
"name": "select",
103-
"type": "UIEvent"
103+
"type": "Event"
104104
},
105105
{
106106
"name": "wheel",

0 commit comments

Comments
 (0)