MCPcopy Create free account
hub / github.com/reactjs/react-rails / clearIfContinuousEvent

Function clearIfContinuousEvent

lib/assets/react-source/development/react.js:7426–7459  ·  view source on GitHub ↗
(topLevelType, nativeEvent)

Source from the content-addressed store, hash-verified

7424 } // Resets the replaying for this type of continuous event to no event.
7425
7426 function clearIfContinuousEvent(topLevelType, nativeEvent) {
7427 switch (topLevelType) {
7428 case TOP_FOCUS:
7429 case TOP_BLUR:
7430 queuedFocus = null;
7431 break;
7432
7433 case TOP_DRAG_ENTER:
7434 case TOP_DRAG_LEAVE:
7435 queuedDrag = null;
7436 break;
7437
7438 case TOP_MOUSE_OVER:
7439 case TOP_MOUSE_OUT:
7440 queuedMouse = null;
7441 break;
7442
7443 case TOP_POINTER_OVER:
7444 case TOP_POINTER_OUT:
7445 {
7446 var pointerId = nativeEvent.pointerId;
7447 queuedPointers.delete(pointerId);
7448 break;
7449 }
7450
7451 case TOP_GOT_POINTER_CAPTURE:
7452 case TOP_LOST_POINTER_CAPTURE:
7453 {
7454 var _pointerId = nativeEvent.pointerId;
7455 queuedPointerCaptures.delete(_pointerId);
7456 break;
7457 }
7458 }
7459 }
7460
7461 function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
7462 if (existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent) {

Callers 1

dispatchEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected