Home / Function/ fireScrollEnd() — react Function Reference

fireScrollEnd() — react Function Reference

Architecture documentation for the fireScrollEnd() function in ScrollEndEventPlugin.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  dfdf22bc_cfb7_f456_a598_96155cbc1f95["fireScrollEnd()"]
  f81462d0_b06e_fbf9_f1b8_93352f59d5eb["ScrollEndEventPlugin.js"]
  dfdf22bc_cfb7_f456_a598_96155cbc1f95 -->|defined in| f81462d0_b06e_fbf9_f1b8_93352f59d5eb
  23a35a28_0e9c_e296_230b_ac3a7b368eb1["debounceScrollEnd()"]
  dfdf22bc_cfb7_f456_a598_96155cbc1f95 -->|calls| 23a35a28_0e9c_e296_230b_ac3a7b368eb1
  8f15f580_96e9_b161_b714_742b0ed77fe8["manualDispatchScrollEndEvent()"]
  dfdf22bc_cfb7_f456_a598_96155cbc1f95 -->|calls| 8f15f580_96e9_b161_b714_742b0ed77fe8
  style dfdf22bc_cfb7_f456_a598_96155cbc1f95 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-dom-bindings/src/events/plugins/ScrollEndEventPlugin.js lines 81–94

function fireScrollEnd(
  targetInst: Fiber,
  nativeEvent: AnyNativeEvent,
  nativeEventTarget: EventTarget,
): void {
  clearScrollEndTimer(nativeEventTarget);
  if (isMouseDown || isTouchStarted) {
    // If mouse or touch is down, try again later in case this is due to having an
    // active scroll but it's not currently moving.
    debounceScrollEnd(targetInst, nativeEvent, nativeEventTarget);
    return;
  }
  manualDispatchScrollEndEvent(targetInst, nativeEvent, nativeEventTarget);
}

Domain

Subdomains

Frequently Asked Questions

What does fireScrollEnd() do?
fireScrollEnd() is a function in the react codebase, defined in packages/react-dom-bindings/src/events/plugins/ScrollEndEventPlugin.js.
Where is fireScrollEnd() defined?
fireScrollEnd() is defined in packages/react-dom-bindings/src/events/plugins/ScrollEndEventPlugin.js at line 81.
What does fireScrollEnd() call?
fireScrollEnd() calls 2 function(s): debounceScrollEnd, manualDispatchScrollEndEvent.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free