Skip to content

Stop the script pane scrolling past what it can draw - #64

Merged
fedonman merged 1 commit into
mainfrom
fixed/scroll-past-u16
Oct 1, 2026
Merged

fedonman merged 1 commit into
mainfrom
fixed/scroll-past-u16

Conversation

@fedonman

Copy link
Copy Markdown
Owner

The script pane cast its scroll offset straight to the u16 that Paragraph::scroll takes, so past 65,535 rows the view jumped back near the top. It now stops scrolling at that row. The log and custom panes stopped hitting this when #56 made them draw only the visible lines, and a new test follows a 70,000-line log to its last line to keep it that way.

Closes #37

@fedonman fedonman added this to the v0.3.0 milestone Sep 29, 2026
Paragraph::scroll takes a u16 and the script pane cast its usize offset
straight into it, so past 65,535 rows the view jumped back near the
top. Cap the scroll range there and clamp the cast. The log and custom
panes no longer hit this since they draw only the visible lines; a
test now pins that for the log pane at 70,000 lines.
@fedonman
fedonman force-pushed the fixed/scroll-past-u16 branch from b137164 to cc37f0f Compare October 1, 2026 07:11
@fedonman
fedonman merged commit fd61305 into main Oct 1, 2026
6 checks passed
@fedonman
fedonman deleted the fixed/scroll-past-u16 branch October 1, 2026 07:12
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.

[Bug]: Scroll position is cast to u16, so following breaks past 65,535 lines

1 participant