MCPcopy
hub / github.com/codeaashu/claude-code / readScrollSpeedBase

Function readScrollSpeedBase

src/components/ScrollKeybindingHandler.tsx:305–310  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

303 * detect which kind of terminal we're in, hence the knob. Called lazily
304 * from initAndLogWheelAccel so globalSettings.env has loaded. */
305export function readScrollSpeedBase(): number {
306 const raw = process.env.CLAUDE_CODE_SCROLL_SPEED;
307 if (!raw) return 1;
308 const n = parseFloat(raw);
309 return Number.isNaN(n) || n <= 0 ? 1 : Math.min(n, 20);
310}
311
312/** Initial wheel accel state. xtermJs=true selects the decay curve.
313 * base is the native-path baseline rows/event (default 1). */

Callers 1

initAndLogWheelAccelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected