Skip to content

fix(renderer): auto-bind ScrollBox wheel input#80

Merged
re-marked merged 3 commits into
mainfrom
codex/scrollbox-wheel-autobind
May 7, 2026
Merged

fix(renderer): auto-bind ScrollBox wheel input#80
re-marked merged 3 commits into
mainfrom
codex/scrollbox-wheel-autobind

Conversation

@re-marked

Copy link
Copy Markdown
Owner

Summary

  • auto-scroll the nearest <ScrollBox> under the mouse wheel cursor using the existing hit-test/z-order model
  • preserve legacy useInput wheel events by attaching parsed mouse coordinates instead of swallowing wheel keypresses
  • add wheelStep and disableWheel props, subscriber notification for wheel scrolls, and docs for nested/double-scroll behavior

Verification

  • pnpm test -- packages/renderer/src/events/mouse-event.test.ts packages/renderer/src/parse-keypress.test.ts packages/renderer/src/components/ScrollBox.test.tsx
  • pnpm --filter @yokai-tui/renderer typecheck
  • pnpm --filter @yokai-tui/renderer lint
  • pnpm --filter @yokai-tui/renderer build
  • pnpm test
  • git diff --check

Closes #62

re-marked and others added 3 commits May 7, 2026 19:15
Co-Authored-By: Mark <psyhik17@gmail.com>

Co-Authored-By: Codex <noreply@anthropic.com>
Co-Authored-By: Mark <psyhik17@gmail.com>

Co-Authored-By: Codex <noreply@anthropic.com>
Co-Authored-By: Mark <psyhik17@gmail.com>

Co-Authored-By: Codex <noreply@anthropic.com>
@re-marked
re-marked merged commit a036703 into main May 7, 2026
1 check passed
@re-marked
re-marked deleted the codex/scrollbox-wheel-autobind branch May 7, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

B9: <ScrollBox> doesn't auto-bind wheel events

1 participant