Home / Function/ handleInteraction() — react Function Reference

handleInteraction() — react Function Reference

Architecture documentation for the handleInteraction() function in VerticalScrollView.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  eb1765a3_0863_dd2c_a927_6e4f28217907["handleInteraction()"]
  15e8ee71_cd71_e6f6_40e5_59e8feb4985d["VerticalScrollView"]
  eb1765a3_0863_dd2c_a927_6e4f28217907 -->|defined in| 15e8ee71_cd71_e6f6_40e5_59e8feb4985d
  07384155_fd65_ab4d_a83c_269ccec4232c["_handleMouseDown()"]
  eb1765a3_0863_dd2c_a927_6e4f28217907 -->|calls| 07384155_fd65_ab4d_a83c_269ccec4232c
  91aaa6f8_9d0f_11f3_4d30_6f0b0e9b91b0["_handleMouseMove()"]
  eb1765a3_0863_dd2c_a927_6e4f28217907 -->|calls| 91aaa6f8_9d0f_11f3_4d30_6f0b0e9b91b0
  f1e0324e_36bb_6810_d53a_763330b48e66["_handleMouseUp()"]
  eb1765a3_0863_dd2c_a927_6e4f28217907 -->|calls| f1e0324e_36bb_6810_d53a_763330b48e66
  c53bd458_8fdb_18ff_350b_512cb76d863c["_handleWheelShift()"]
  eb1765a3_0863_dd2c_a927_6e4f28217907 -->|calls| c53bd458_8fdb_18ff_350b_512cb76d863c
  a955e197_8406_3a9f_70b7_bd2bc137a188["handleInteraction()"]
  eb1765a3_0863_dd2c_a927_6e4f28217907 -->|calls| a955e197_8406_3a9f_70b7_bd2bc137a188
  style eb1765a3_0863_dd2c_a927_6e4f28217907 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-timeline/src/view-base/VerticalScrollView.js lines 156–167

  handleInteraction(interaction: Interaction): ?boolean {
    switch (interaction.type) {
      case 'mousedown':
        return this._handleMouseDown(interaction);
      case 'mousemove':
        return this._handleMouseMove(interaction);
      case 'mouseup':
        return this._handleMouseUp(interaction);
      case 'wheel-shift':
        return this._handleWheelShift(interaction);
    }
  }

Domain

Subdomains

Frequently Asked Questions

What does handleInteraction() do?
handleInteraction() is a function in the react codebase, defined in packages/react-devtools-timeline/src/view-base/VerticalScrollView.js.
Where is handleInteraction() defined?
handleInteraction() is defined in packages/react-devtools-timeline/src/view-base/VerticalScrollView.js at line 156.
What does handleInteraction() call?
handleInteraction() calls 5 function(s): _handleMouseDown, _handleMouseMove, _handleMouseUp, _handleWheelShift, handleInteraction.

Analyze Your Own Codebase

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

Try Supermodel Free