fix: improve iOS terminal scroll speed#12
Open
ZacharyZcR wants to merge 1 commit into
Open
Conversation
iOS WebView does not generate wheel events from touch gestures, so xterm's built-in scroll was limited to the native viewport scroll which moves only one line at a time. Add a touchmove listener that maps vertical swipe distance to terminal.scrollLines() for responsive scrolling, and enable -webkit-overflow-scrolling: touch on the viewport. Fixes Termix-SSH/Support#551
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.
Summary
wheelevents from touch gestures, so xterm.js's built-in viewport scroll was limited to the native scroll behavior which only moves one line at a time. Added atouchmovelistener that maps vertical swipe distance directly toterminal.scrollLines()for responsive, proportional scrolling.-webkit-overflow-scrolling: touchto the xterm viewport CSS for smoother inertial scrolling on iOS.Files Changed
app/tabs/sessions/terminal/Terminal.tsxTest plan
ls -la /usr/bin)Fixes Termix-SSH/Support#551