From 5c2937342b79cd7dd6c85277a31e260842e4593d Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 24 Jan 2026 19:35:11 +0100 Subject: [PATCH] fix: use DOM wheel listener instead of non-existent xterm API attachCustomWheelEventHandler doesn't exist in xterm.js 5.3.0, causing initTerminal() to crash and abort all app initialization. Co-Authored-By: Claude Opus 4.5 --- src/web/public/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/web/public/app.js b/src/web/public/app.js index 447ac630..f03ce867 100644 --- a/src/web/public/app.js +++ b/src/web/public/app.js @@ -468,11 +468,11 @@ class ClaudemanApp { // Always use mouse wheel for terminal scrollback, never forward to application. // Prevents Claude's Ink UI (plan mode selector) from capturing scroll as option navigation. - this.terminal.attachCustomWheelEventHandler((ev) => { + container.addEventListener('wheel', (ev) => { + ev.preventDefault(); const lines = Math.round(ev.deltaY / 25) || (ev.deltaY > 0 ? 1 : -1); this.terminal.scrollLines(lines); - return false; - }); + }, { passive: false }); // Welcome message this.showWelcome();