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

Function initAndLogWheelAccel

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

Source from the content-addressed store, hash-verified

332// The renderer also calls isXtermJsHost() (in render-node-to-output) to
333// select the drain algorithm — no state to pass through.
334function initAndLogWheelAccel(): WheelAccelState {
335 const xtermJs = isXtermJs();
336 const base = readScrollSpeedBase();
337 logForDebugging(`wheel accel: ${xtermJs ? 'decay (xterm.js)' : 'window (native)'} · base=${base} · TERM_PROGRAM=${process.env.TERM_PROGRAM ?? 'unset'}`);
338 return initWheelAccel(xtermJs, base);
339}
340
341// Drag-to-scroll: when dragging past the viewport edge, scroll by this many
342// rows every AUTOSCROLL_INTERVAL_MS. Mode 1002 mouse tracking only fires on

Callers 1

ScrollKeybindingHandlerFunction · 0.85

Calls 4

isXtermJsFunction · 0.85
readScrollSpeedBaseFunction · 0.85
logForDebuggingFunction · 0.85
initWheelAccelFunction · 0.85

Tested by

no test coverage detected