Skip to content

Commit feb9b15

Browse files
Merge branch 'main' into feat/generic-screen-queries
2 parents 4b76adc + 669602c commit feb9b15

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

Diff for: src/__tests__/events.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,12 @@ const eventTypes = [
117117
},
118118
{
119119
type: 'Transition',
120-
events: ['transitionEnd'],
120+
events: [
121+
'transitionCancel',
122+
'transitionEnd',
123+
'transitionRun',
124+
'transitionStart',
125+
],
121126
elementType: 'div',
122127
},
123128
{

Diff for: src/event-map.js

+12
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,22 @@ export const eventMap = {
297297
defaultInit: {bubbles: true, cancelable: false},
298298
},
299299
// Transition Events
300+
transitionCancel: {
301+
EventType: 'TransitionEvent',
302+
defaultInit: {bubbles: true, cancelable: false},
303+
},
300304
transitionEnd: {
301305
EventType: 'TransitionEvent',
302306
defaultInit: {bubbles: true, cancelable: true},
303307
},
308+
transitionRun: {
309+
EventType: 'TransitionEvent',
310+
defaultInit: {bubbles: true, cancelable: false},
311+
},
312+
transitionStart: {
313+
EventType: 'TransitionEvent',
314+
defaultInit: {bubbles: true, cancelable: false},
315+
},
304316
// pointer events
305317
pointerOver: {
306318
EventType: 'PointerEvent',

Diff for: types/events.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ export type EventType =
7171
| 'animationStart'
7272
| 'animationEnd'
7373
| 'animationIteration'
74+
| 'transitionCancel'
7475
| 'transitionEnd'
76+
| 'transitionRun'
77+
| 'transitionStart'
7578
| 'doubleClick'
7679
| 'pointerOver'
7780
| 'pointerEnter'

0 commit comments

Comments
 (0)