MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / targetFor

Function targetFor

source code/components/VirtualMessageList.tsx:474–477  ·  view source on GitHub ↗
(i: number)

Source from the content-addressed store, hash-verified

472 // (was a safety net for frac garbage — without frac, est IS the next
473 // message's top, spam-n/N converges because message tops are ordered).
474 function targetFor(i: number): number {
475 const top = jumpState.current.getItemTop(i);
476 return Math.max(0, top - HEADROOM);
477 }
478
479 // Highlight positions[ord]. Positions are MESSAGE-RELATIVE (row 0 =
480 // element top, from scanElement). Compute rowOffset = getItemTop -

Callers 2

jumpFunction · 0.85
VirtualMessageListFunction · 0.85

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected