mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-08 08:29:42 +02:00
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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user