Home / Function/ pointerhover() — react Function Reference

pointerhover() — react Function Reference

Architecture documentation for the pointerhover() function in domEventSequences.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  52be5c07_69f9_1af6_1c03_edc2c9c809c6["pointerhover()"]
  d4066e75_dcea_2912_73ff_88e30b9530d2["domEventSequences.js"]
  52be5c07_69f9_1af6_1c03_edc2c9c809c6 -->|defined in| d4066e75_dcea_2912_73ff_88e30b9530d2
  7d91ff05_2240_1619_d742_200a91c5a4eb["createEventTarget()"]
  7d91ff05_2240_1619_d742_200a91c5a4eb -->|calls| 52be5c07_69f9_1af6_1c03_edc2c9c809c6
  010da236_784b_cbe9_c79d_2a93e35a2880["hasPointerEvent()"]
  52be5c07_69f9_1af6_1c03_edc2c9c809c6 -->|calls| 010da236_784b_cbe9_c79d_2a93e35a2880
  3bc8e903_1c8d_e20a_7fe0_4f403cb2c5d3["pointermove()"]
  52be5c07_69f9_1af6_1c03_edc2c9c809c6 -->|calls| 3bc8e903_1c8d_e20a_7fe0_4f403cb2c5d3
  d81da47e_db75_f12e_52b7_08b4bae82395["mousemove()"]
  52be5c07_69f9_1af6_1c03_edc2c9c809c6 -->|calls| d81da47e_db75_f12e_52b7_08b4bae82395
  style 52be5c07_69f9_1af6_1c03_edc2c9c809c6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/dom-event-testing-library/domEventSequences.js lines 273–285

export function pointerhover(target, defaultPayload) {
  const dispatch = arg => target.dispatchEvent(arg);

  const payload = {
    pointerId: defaultPointerId,
    ...defaultPayload,
  };

  if (hasPointerEvent()) {
    dispatch(domEvents.pointermove(payload));
  }
  dispatch(domEvents.mousemove(payload));
}

Domain

Subdomains

Frequently Asked Questions

What does pointerhover() do?
pointerhover() is a function in the react codebase, defined in packages/dom-event-testing-library/domEventSequences.js.
Where is pointerhover() defined?
pointerhover() is defined in packages/dom-event-testing-library/domEventSequences.js at line 273.
What does pointerhover() call?
pointerhover() calls 3 function(s): hasPointerEvent, mousemove, pointermove.
What calls pointerhover()?
pointerhover() is called by 1 function(s): createEventTarget.

Analyze Your Own Codebase

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

Try Supermodel Free