MCPcopy Create free account
hub / github.com/microsoft/SandDance / isReplayableDiscreteEvent

Function isReplayableDiscreteEvent

docs/external/js/react-dom.development.js:3819–3821  ·  view source on GitHub ↗
(eventType)

Source from the content-addressed store, hash-verified

3817 var discreteReplayableEvents = [TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_TOUCH_CANCEL, TOP_TOUCH_END, TOP_TOUCH_START, TOP_AUX_CLICK, TOP_DOUBLE_CLICK, TOP_POINTER_CANCEL, TOP_POINTER_DOWN, TOP_POINTER_UP, TOP_DRAG_END, TOP_DRAG_START, TOP_DROP, TOP_COMPOSITION_END, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_INPUT, TOP_TEXT_INPUT, TOP_CLOSE, TOP_CANCEL, TOP_COPY, TOP_CUT, TOP_PASTE, TOP_CLICK, TOP_CHANGE, TOP_CONTEXT_MENU, TOP_RESET, TOP_SUBMIT];
3818 var continuousReplayableEvents = [TOP_FOCUS, TOP_BLUR, TOP_DRAG_ENTER, TOP_DRAG_LEAVE, TOP_MOUSE_OVER, TOP_MOUSE_OUT, TOP_POINTER_OVER, TOP_POINTER_OUT, TOP_GOT_POINTER_CAPTURE, TOP_LOST_POINTER_CAPTURE];
3819 function isReplayableDiscreteEvent(eventType) {
3820 return discreteReplayableEvents.indexOf(eventType) > -1;
3821 }
3822
3823 function trapReplayableEventForDocument(topLevelType, document, listenerMap) {
3824 legacyListenToTopLevelEvent(topLevelType, document, listenerMap);

Callers 1

dispatchEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected