@@ -17,11 +17,7 @@ import {
17
17
ANIMATION_START ,
18
18
TRANSITION_END ,
19
19
} from './DOMEventNames' ;
20
- import {
21
- DiscreteEvent ,
22
- UserBlockingEvent ,
23
- ContinuousEvent ,
24
- } from 'shared/ReactTypes' ;
20
+ import { DiscreteEvent , ContinuousEvent , DefaultEvent } from 'shared/ReactTypes' ;
25
21
26
22
import { enableCreateEventHandleAPI } from 'shared/ReactFeatureFlags' ;
27
23
@@ -97,7 +93,7 @@ if (enableCreateEventHandleAPI) {
97
93
}
98
94
99
95
// prettier-ignore
100
- const userBlockingPairsForSimpleEventPlugin : Array< string | DOMEventName > = [
96
+ const continuousPairsForSimpleEventPlugin : Array< string | DOMEventName > = [
101
97
('drag': DOMEventName), 'drag',
102
98
('dragenter': DOMEventName), 'dragEnter',
103
99
('dragexit': DOMEventName), 'dragExit',
@@ -116,7 +112,7 @@ const userBlockingPairsForSimpleEventPlugin: Array<string | DOMEventName> = [
116
112
];
117
113
118
114
// prettier-ignore
119
- const continuousPairsForSimpleEventPlugin : Array< string | DOMEventName > = [
115
+ const defaultPairsForSimpleEventPlugin : Array< string | DOMEventName > = [
120
116
('abort': DOMEventName), 'abort',
121
117
(ANIMATION_END: DOMEventName), 'animationEnd',
122
118
(ANIMATION_ITERATION: DOMEventName), 'animationIteration',
@@ -190,10 +186,10 @@ export function getEventPriorityForPluginSystem(
190
186
domEventName : DOMEventName ,
191
187
) : EventPriority {
192
188
const priority = eventPriorities . get ( domEventName ) ;
193
- // Default to a ContinuousEvent . Note: we might
189
+ // Default to a DefaultEvent . Note: we might
194
190
// want to warn if we can't detect the priority
195
191
// for the event.
196
- return priority === undefined ? ContinuousEvent : priority ;
192
+ return priority === undefined ? DefaultEvent : priority ;
197
193
}
198
194
199
195
export function getEventPriorityForListenerSystem(
@@ -210,21 +206,21 @@ export function getEventPriorityForListenerSystem(
210
206
type ,
211
207
) ;
212
208
}
213
- return ContinuousEvent ;
209
+ return DefaultEvent ;
214
210
}
215
211
216
212
export function registerSimpleEvents ( ) {
217
213
registerSimplePluginEventsAndSetTheirPriorities (
218
214
discreteEventPairsForSimpleEventPlugin ,
219
215
DiscreteEvent ,
220
216
) ;
221
- registerSimplePluginEventsAndSetTheirPriorities (
222
- userBlockingPairsForSimpleEventPlugin ,
223
- UserBlockingEvent ,
224
- ) ;
225
217
registerSimplePluginEventsAndSetTheirPriorities (
226
218
continuousPairsForSimpleEventPlugin ,
227
219
ContinuousEvent ,
228
220
) ;
221
+ registerSimplePluginEventsAndSetTheirPriorities (
222
+ defaultPairsForSimpleEventPlugin ,
223
+ DefaultEvent ,
224
+ ) ;
229
225
setEventPriorities ( otherDiscreteEvents , DiscreteEvent ) ;
230
226
}
0 commit comments