MCPcopy Create free account
hub / github.com/codeaashu/claude-code / setClampBounds

Function setClampBounds

src/ink/components/ScrollBox.tsx:193–198  ·  view source on GitHub ↗
(min, max)

Source from the content-addressed store, hash-verified

191 return () => listenersRef.current.delete(listener);
192 },
193 setClampBounds(min, max) {
194 const el = domRef.current;
195 if (!el) return;
196 el.scrollClampMin = min;
197 el.scrollClampMax = max;
198 }
199 }),
200 // notify/scrollMutated are inline (no useCallback) but only close over
201 // refs + imports — stable. Empty deps avoids rebuilding the handle on

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected