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 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-01-24 19:35:11 +01:00
co-authored by Claude Opus 4.5
parent 3f082c5e01
commit 5c2937342b
+3 -3
View File
@@ -468,11 +468,11 @@ class ClaudemanApp {
// Always use mouse wheel for terminal scrollback, never forward to application. // 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. // 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); const lines = Math.round(ev.deltaY / 25) || (ev.deltaY > 0 ? 1 : -1);
this.terminal.scrollLines(lines); this.terminal.scrollLines(lines);
return false; }, { passive: false });
});
// Welcome message // Welcome message
this.showWelcome(); this.showWelcome();