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

Function scrollUp

source code/components/ScrollKeybindingHandler.tsx:875–884  ·  view source on GitHub ↗
(s: ScrollBoxHandle, amount: number)

Source from the content-addressed store, hash-verified

873// can cover and intermediate drain frames render at scrollTops with no
874// mounted children — blank viewport.
875export function scrollUp(s: ScrollBoxHandle, amount: number): void {
876 // Include pendingDelta: scrollBy accumulates without updating scrollTop,
877 // so getScrollTop() alone is stale within a batch of wheel events.
878 const effectiveTop = s.getScrollTop() + s.getPendingDelta();
879 if (effectiveTop - amount <= 0) {
880 s.scrollTo(0);
881 return;
882 }
883 s.scrollBy(-amount);
884}
885export type ModalPagerAction = 'lineUp' | 'lineDown' | 'halfPageUp' | 'halfPageDown' | 'fullPageUp' | 'fullPageDown' | 'top' | 'bottom';
886
887/**

Callers 1

ScrollKeybindingHandlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected