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

Function initWheelAccel

src/components/ScrollKeybindingHandler.tsx:314–326  ·  view source on GitHub ↗
(xtermJs = false, base = 1)

Source from the content-addressed store, hash-verified

312/** Initial wheel accel state. xtermJs=true selects the decay curve.
313 * base is the native-path baseline rows/event (default 1). */
314export function initWheelAccel(xtermJs = false, base = 1): WheelAccelState {
315 return {
316 time: 0,
317 mult: base,
318 dir: 0,
319 xtermJs,
320 frac: 0,
321 base,
322 pendingFlip: false,
323 wheelMode: false,
324 burstCount: 0
325 };
326}
327
328// Lazy-init helper. isXtermJs() combines the TERM_PROGRAM env check + async
329// XTVERSION probe — the probe may not have resolved at render time, so this

Callers 1

initAndLogWheelAccelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected