MCPcopy Index your code
hub / github.com/microsoft/SandDance / clearIfContinuousEvent

Function clearIfContinuousEvent

docs/external/js/react-dom.development.js:3854–3887  ·  view source on GitHub ↗
(topLevelType, nativeEvent)

Source from the content-addressed store, hash-verified

3852 } // Resets the replaying for this type of continuous event to no event.
3853
3854 function clearIfContinuousEvent(topLevelType, nativeEvent) {
3855 switch (topLevelType) {
3856 case TOP_FOCUS:
3857 case TOP_BLUR:
3858 queuedFocus = null;
3859 break;
3860
3861 case TOP_DRAG_ENTER:
3862 case TOP_DRAG_LEAVE:
3863 queuedDrag = null;
3864 break;
3865
3866 case TOP_MOUSE_OVER:
3867 case TOP_MOUSE_OUT:
3868 queuedMouse = null;
3869 break;
3870
3871 case TOP_POINTER_OVER:
3872 case TOP_POINTER_OUT:
3873 {
3874 var pointerId = nativeEvent.pointerId;
3875 queuedPointers.delete(pointerId);
3876 break;
3877 }
3878
3879 case TOP_GOT_POINTER_CAPTURE:
3880 case TOP_LOST_POINTER_CAPTURE:
3881 {
3882 var _pointerId = nativeEvent.pointerId;
3883 queuedPointerCaptures.delete(_pointerId);
3884 break;
3885 }
3886 }
3887 }
3888
3889 function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
3890 if (existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent) {

Callers 1

dispatchEventFunction · 0.85

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected