Skip to content

Commit 89149ab

Browse files
committed
Drop some top-level events from the list
1 parent 30dac4e commit 89149ab

File tree

1 file changed

+3
-25
lines changed

1 file changed

+3
-25
lines changed

packages/react-dom/src/events/BrowserEventConstants.js

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,16 @@ import getVendorPrefixedEventName from './getVendorPrefixedEventName';
1010
/**
1111
* Types of raw signals from the browser caught at the top level.
1212
*
13-
* For events like 'submit' which don't consistently bubble (which we
14-
* trap at a lower node than `document`), binding at `document` would
15-
* cause duplicate events so we don't include them here.
13+
* For events like 'submit' or audio/video events which don't consistently
14+
* bubble (which we trap at a lower node than `document`), binding
15+
* at `document` would cause duplicate events so we don't include them here.
1616
*/
1717
const topLevelTypes = {
18-
topAbort: 'abort',
1918
topAnimationEnd: getVendorPrefixedEventName('animationend'),
2019
topAnimationIteration: getVendorPrefixedEventName('animationiteration'),
2120
topAnimationStart: getVendorPrefixedEventName('animationstart'),
2221
topBlur: 'blur',
2322
topCancel: 'cancel',
24-
topCanPlay: 'canplay',
25-
topCanPlayThrough: 'canplaythrough',
2623
topChange: 'change',
2724
topClick: 'click',
2825
topClose: 'close',
@@ -41,47 +38,28 @@ const topLevelTypes = {
4138
topDragOver: 'dragover',
4239
topDragStart: 'dragstart',
4340
topDrop: 'drop',
44-
topDurationChange: 'durationchange',
45-
topEmptied: 'emptied',
46-
topEncrypted: 'encrypted',
47-
topEnded: 'ended',
48-
topError: 'error',
4941
topFocus: 'focus',
5042
topInput: 'input',
5143
topKeyDown: 'keydown',
5244
topKeyPress: 'keypress',
5345
topKeyUp: 'keyup',
54-
topLoadedData: 'loadeddata',
5546
topLoad: 'load',
56-
topLoadedMetadata: 'loadedmetadata',
5747
topLoadStart: 'loadstart',
5848
topMouseDown: 'mousedown',
5949
topMouseMove: 'mousemove',
6050
topMouseOut: 'mouseout',
6151
topMouseOver: 'mouseover',
6252
topMouseUp: 'mouseup',
6353
topPaste: 'paste',
64-
topPause: 'pause',
65-
topPlay: 'play',
66-
topPlaying: 'playing',
67-
topProgress: 'progress',
68-
topRateChange: 'ratechange',
6954
topScroll: 'scroll',
70-
topSeeked: 'seeked',
71-
topSeeking: 'seeking',
7255
topSelectionChange: 'selectionchange',
73-
topStalled: 'stalled',
74-
topSuspend: 'suspend',
7556
topTextInput: 'textInput',
76-
topTimeUpdate: 'timeupdate',
7757
topToggle: 'toggle',
7858
topTouchCancel: 'touchcancel',
7959
topTouchEnd: 'touchend',
8060
topTouchMove: 'touchmove',
8161
topTouchStart: 'touchstart',
8262
topTransitionEnd: getVendorPrefixedEventName('transitionend'),
83-
topVolumeChange: 'volumechange',
84-
topWaiting: 'waiting',
8563
topWheel: 'wheel',
8664
};
8765

0 commit comments

Comments
 (0)