Repository navigation
Keep a short swipe up on a phone where the reader put it - #191
Merged
Merged
Conversation
On a phone, a slow short swipe up in a thread jumped back to the bottom, and only a fast, wide swipe stayed up. Since assistant-ui 0.15.36 (a397c69), the runtime's follow counted a position within the footer height of the bottom as the bottom. The swipe brought the header shelf back, which made the viewport shorter, and the runtime then scrolled down again. The thread viewport now leaves following to useFollowOutput, which stops following on a touch or wheel gesture.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On a phone, a slow short swipe up in a thread jumped back to the bottom. Only a fast, wide swipe stayed up.
Cause: the thread viewport had the auto follow of assistant-ui turned on. Since assistant-ui 0.15.36 (#190), that follow counts a position within the footer height (about 110 px) of the bottom as the bottom. The swipe brings the header shelf back, which makes the viewport shorter, and the follow then scrolls down again.
Change: the viewport no longer turns on the auto follow of assistant-ui, which is also its default with
turnAnchor="top".useFollowOutputkeeps new output in view, and it stops following on a touch or wheel gesture.Tests:
dashboard/e2e/scroll.test.tsemulates touch input on a phone viewport.