(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent)
| 3911 | } |
| 3912 | |
| 3913 | function queueIfContinuousEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) { |
| 3914 | // These set relatedTarget to null because the replayed event will be treated as if we |
| 3915 | // moved from outside the window (no target) onto the target once it hydrates. |
| 3916 | // Instead of mutating we could clone the event. |
| 3917 | switch (topLevelType) { |
| 3918 | case TOP_FOCUS: |
| 3919 | { |
| 3920 | var focusEvent = nativeEvent; |
| 3921 | queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, topLevelType, eventSystemFlags, container, focusEvent); |
| 3922 | return true; |
| 3923 | } |
| 3924 | |
| 3925 | case TOP_DRAG_ENTER: |
| 3926 | { |
| 3927 | var dragEvent = nativeEvent; |
| 3928 | queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, topLevelType, eventSystemFlags, container, dragEvent); |
| 3929 | return true; |
| 3930 | } |
| 3931 | |
| 3932 | case TOP_MOUSE_OVER: |
| 3933 | { |
| 3934 | var mouseEvent = nativeEvent; |
| 3935 | queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, topLevelType, eventSystemFlags, container, mouseEvent); |
| 3936 | return true; |
| 3937 | } |
| 3938 | |
| 3939 | case TOP_POINTER_OVER: |
| 3940 | { |
| 3941 | var pointerEvent = nativeEvent; |
| 3942 | var pointerId = pointerEvent.pointerId; |
| 3943 | queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, topLevelType, eventSystemFlags, container, pointerEvent)); |
| 3944 | return true; |
| 3945 | } |
| 3946 | |
| 3947 | case TOP_GOT_POINTER_CAPTURE: |
| 3948 | { |
| 3949 | var _pointerEvent = nativeEvent; |
| 3950 | var _pointerId2 = _pointerEvent.pointerId; |
| 3951 | queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2) || null, blockedOn, topLevelType, eventSystemFlags, container, _pointerEvent)); |
| 3952 | return true; |
| 3953 | } |
| 3954 | } |
| 3955 | |
| 3956 | return false; |
| 3957 | } // Check if this target is unblocked. Returns true if it's unblocked. |
| 3958 | |
| 3959 | function attemptExplicitHydrationTarget(queuedTarget) { |
| 3960 | // TODO: This function shares a lot of logic with attemptToDispatchEvent. |
no test coverage detected