A stuck scroll's report always says the reader was slid 0s ago #488
Reference in New Issue
Block a user
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?
All three scroll_stuck reports since
9035306(#450) end withslid 0s ago: 2026-11-18 18:06 (jason, :all), 2026-11-19 18:37 and 19:15 (rays, :signal:1 and :all). The swipe code's own touchend, registered before the stuck-scroll watcher's, callsslide(0)on every touch in the reader that is not a swipe, andslidesetsslidAtwhatever dx is, so the field measures the touch it is reporting and never says when the reader was last slid across. That was the one field meant to test the theory in #450 that a swipe leaves WebKit without its scroller.Also: the report reads
scrollTopon touchend. On iOS the scroll runs off the main thread, and a fast flick (two to four touchmoves seen, as two of the three were) can end before the page has the new position, so a scroll that did move may be reported as stuck. Checking again a moment later would tell the two apart.Found by the prod check:
Fixed in
8afa79b, deployed in ipx-web:slidAtis set only when the reader moves across, soslidsays when it was last swiped; and the watcher looks at scrollTop again 300 ms after the touch ends, reporting only a reader that still has not moved, with the drag's time (N moves seen in Mms).