mirror of
https://github.com/zeronsh/comet.git
synced 2026-11-16 18:57:19 +00:00
A transcript's place is remembered at each rest by zgx's timer, not a Luau poll
Once the offset has rested 150 ms, where it is is remembered, the reading
place found again, the end let go if scrolled away from. That was an
effect hearing a scroll's first move and then a poll every 50 ms through
the scroll, so that a rest at the offset it last rested at was told too.
Now `ui.debounced(offset, 150, { every = true })` (zgx #1975, on the pin):
zgx's own timer, begun again at each change, told at every rest, the held
value included; the place is written 150 ms after the last change exactly
(it was 150-200).
scroll_script (60 turns, 120 frames of 8 pt): script calls during the
steady scroll 2909 to 2869 (the poll's 40 gone); the script phase's
median 490k to 483k. rail_pixels: every frame the same as before.
The transcript place tests (transcript_return, transcript_places) read
the view's top from a line that never matched: the transcript's scroll
carries its label ("Conversation") before its box, so the view read 0 by
0 and each `place` was "nothing" before and after. They now read it, and
pass. A new one: a chat opened at its end and scrolled to its very top
comes back at its top.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
This commit is contained in:
parent
27e053c9c0
commit
3653835378
3 changed files with 31 additions and 38 deletions
Loading…
Add table
Add a link
Reference in a new issue