(xtermJs = false, base = 1)
| 312 | /** Initial wheel accel state. xtermJs=true selects the decay curve. |
| 313 | * base is the native-path baseline rows/event (default 1). */ |
| 314 | export 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 |
no outgoing calls
no test coverage detected