MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / scrollToElement

Function scrollToElement

codeclash/viewer/static/js/app.js:283–292  ·  view source on GitHub ↗
(selector)

Source from the content-addressed store, hash-verified

281
282// Scroll to element functionality
283function scrollToElement(selector) {
284 const element = document.querySelector(selector);
285 if (element) {
286 element.scrollIntoView({
287 behavior: "smooth",
288 block: "start",
289 });
290 // closeTocMenu(); // Keep TOC open after navigation
291 }
292}
293
294// Floating Table of Contents functionality
295function initializeFloatingToc() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected