mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #470] [CLOSED] Fix scrollbox hit-testing to respect overflow clipping #557
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#557
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/470
Author: @nyxkrage
Created: 1/4/2026
Status: ❌ Closed
Base:
main← Head:fix/scrollbox-hit-testing-clipping📝 Commits (2)
1ea151cfix: clip hit grid to scissor rect for correct overflow hit-testinge63daabrefactor: move hit grid clipping to zig📊 Changes
1 file changed (+6 additions, -4 deletions)
View changed files
📝
packages/core/src/zig/renderer.zig(+6 -4)📄 Description
Exports OptimizedBuffer.clipRectToScissor to the TypeScript interface and uses it to clip hit rects to the active scissor before adding them to the hit grid.
This fixes scrollbox content receiving clicks outside its visible bounds.
See #467 for repro example.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.