mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[GH-ISSUE #467] Scrollbox receives clicks outside its visible bounds (hit-testing ignores clipping) #122
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#122
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?
Originally created by @nyxkrage on GitHub (Jan 3, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/467
When a
scrollboxcontains content taller than its visible area, clicks outside the scrollbox's visible bounds are incorrectly captured by the scrollbox. The content is visually clipped correctly, but hit-testing uses the full unclipped content height.Steps to Reproduce
Expected: The overlay receives the click and the dialog closes
Actual: The scrollbox receives the click (even though it's visually contained within the dialog)
Minimal Example
dto open the dialogEnvironment
@simonklee commented on GitHub (Jan 8, 2026):
4b241ad280should fix the issue. It was one of my test cases.@nyxkrage commented on GitHub (Jan 8, 2026):
Yep! Thanks a lot!