Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DomRenderer: fix touch scrolling starting from text #4979

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xdavidwu
Copy link

@xdavidwu xdavidwu commented Mar 4, 2024

When scrolling with touchscreen starting from text, as soon as touch leaves the text span, the touch event stops, making touch-scrolling able to scroll one row only.

This fixes it by setting pointer-events: none to text spans, excluding them from hit-testing so that touch events won't be constrained to them.

Fixes #3613

xdavidwu and others added 2 commits March 5, 2024 01:21
When scrolling with touchscreen starting from text, as soon as touch
leaves the text span, the touch event stops, making touch-scrolling able
to scroll one row only.

This fixes it by setting `pointer-events: none` to text spans, excluding
them from hit-testing so that touch events won't be constrained to them.

Fixes xtermjs#3613
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.

[iOS] Scroll problems if you starts on text
2 participants