@@ -17,11 +17,7 @@ import {
1717 ANIMATION_START,
1818 TRANSITION_END,
1919} from './DOMEventNames';
20- import {
21- DiscreteEvent,
22- UserBlockingEvent,
23- ContinuousEvent,
24- } from 'shared/ReactTypes';
20+ import {DiscreteEvent, ContinuousEvent, DefaultEvent} from 'shared/ReactTypes';
2521
2622import {enableCreateEventHandleAPI} from 'shared/ReactFeatureFlags';
2723
@@ -97,7 +93,7 @@ if (enableCreateEventHandleAPI) {
9793}
9894
9995// prettier-ignore
100- const userBlockingPairsForSimpleEventPlugin : Array<string | DOMEventName> = [
96+ const continuousPairsForSimpleEventPlugin : Array<string | DOMEventName> = [
10197 ('drag': DOMEventName), 'drag',
10298 ('dragenter': DOMEventName), 'dragEnter',
10399 ('dragexit': DOMEventName), 'dragExit',
@@ -116,7 +112,7 @@ const userBlockingPairsForSimpleEventPlugin: Array<string | DOMEventName> = [
116112];
117113
118114// prettier-ignore
119- const continuousPairsForSimpleEventPlugin : Array<string | DOMEventName> = [
115+ const defaultPairsForSimpleEventPlugin : Array<string | DOMEventName> = [
120116 ('abort': DOMEventName), 'abort',
121117 (ANIMATION_END: DOMEventName), 'animationEnd',
122118 (ANIMATION_ITERATION: DOMEventName), 'animationIteration',
@@ -190,10 +186,10 @@ export function getEventPriorityForPluginSystem(
190186 domEventName: DOMEventName,
191187): EventPriority {
192188 const priority = eventPriorities.get(domEventName);
193- // Default to a ContinuousEvent . Note: we might
189+ // Default to a DefaultEvent . Note: we might
194190 // want to warn if we can't detect the priority
195191 // for the event.
196- return priority === undefined ? ContinuousEvent : priority;
192+ return priority === undefined ? DefaultEvent : priority;
197193}
198194
199195export function getEventPriorityForListenerSystem(
@@ -210,21 +206,21 @@ export function getEventPriorityForListenerSystem(
210206 type,
211207 );
212208 }
213- return ContinuousEvent ;
209+ return DefaultEvent ;
214210}
215211
216212export function registerSimpleEvents() {
217213 registerSimplePluginEventsAndSetTheirPriorities(
218214 discreteEventPairsForSimpleEventPlugin,
219215 DiscreteEvent,
220216 );
221- registerSimplePluginEventsAndSetTheirPriorities(
222- userBlockingPairsForSimpleEventPlugin,
223- UserBlockingEvent,
224- );
225217 registerSimplePluginEventsAndSetTheirPriorities(
226218 continuousPairsForSimpleEventPlugin,
227219 ContinuousEvent,
228220 );
221+ registerSimplePluginEventsAndSetTheirPriorities(
222+ defaultPairsForSimpleEventPlugin,
223+ DefaultEvent,
224+ );
229225 setEventPriorities(otherDiscreteEvents, DiscreteEvent);
230226}
0 commit comments