()
| 332 | // The renderer also calls isXtermJsHost() (in render-node-to-output) to |
| 333 | // select the drain algorithm — no state to pass through. |
| 334 | function 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 |
no test coverage detected