handleScroll function

Last updated: 2026-03-05T20:45:07.036Z

Metrics

LOC: 10 Complexity: 2 Params: 1

Signature

handleScroll(step: FlowStep): : StepResult

Source Code

function handleScroll(step: FlowStep): StepResult {
  if (step.scrollPosition) {
    window.scrollTo({
      left: step.scrollPosition.x,
      top: step.scrollPosition.y,
      behavior: "smooth",
    });
  }
  return { status: "success" };
}

No outgoing dependencies.

Impact (Incoming)

graph LR handleScroll["handleScroll"] executeStep["executeStep"] executeStep -->|calls| handleScroll style handleScroll fill:#dbeafe,stroke:#2563eb,stroke-width:2px click handleScroll "683f3c239bc85481.html" click executeStep "a26ccfb820921de2.html"
SourceType
executeStep calls