mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #697] Detect end of TextView scrollable area #508
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#508
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 @AuHau on GitHub (Feb 2, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/697
I would need to detect if a user reached the end of
TextView, is that possible? I have not discovered the way. There is half-way solution trying to calculate this usingGetScrollOffset()andGetInnerRect()and counting how many lines theTextViewhas. But if the wrapping is enabled and is in the game then I don't know how to get how many lines theTextViewactually has as I don't have access to itsindex.@rivo commented on GitHub (Nov 13, 2022):
Apologies for the late reply. Is this still relevant? Yes, I realize there is currently no way to check for this. Let me know if you still need it.
@AuHau commented on GitHub (Nov 14, 2022):
I'm not actively working on the original project, but as you said tview lack this capability.
@rivo commented on GitHub (Nov 15, 2022):
Given my limited time, I have to choose what to work on and need to focus on the most important features.
I will close this for now. If this topic becomes relevant again, you (or someone else) can open a new issue, preferably referencing this one.