diff --git a/src/utils/nested-scroll.ts b/src/utils/nested-scroll.ts index 35a0659..64c97e2 100644 --- a/src/utils/nested-scroll.ts +++ b/src/utils/nested-scroll.ts @@ -19,7 +19,9 @@ import type { MouseEvent } from "@opentui/core"; type ScrollDir = "up" | "down" | "left" | "right"; // The scrollbox's own wheel handler (scrolls, then bubbles to its parent). -const original = ScrollBoxRenderable.prototype.onMouseEvent; +const original = (ScrollBoxRenderable.prototype as unknown as { + onMouseEvent: (event: MouseEvent) => void; +}).onMouseEvent; let installed = false;