Skip to content

Conversation

ChaosExAnima
Copy link
Contributor

Fixes #34852. The direction on the touch-action attribute was incorrect.

@ChaosExAnima ChaosExAnima requested a review from a team May 30, 2025 08:42
@ClearlyClaire ClearlyClaire added the build-image Build a container image for this PR label May 30, 2025
@ChaosExAnima ChaosExAnima added bug Something isn't working ui Front-end, design area/web interface Related to the Mastodon web interface labels May 30, 2025
@ChaosExAnima ChaosExAnima added this pull request to the merge queue May 30, 2025
touch-action: pan-x;
touch-action: pan-y;
Copy link
Contributor

@diondiondion diondiondion May 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL! So basically, this declaration specifies which direction we want to keep being handled natively, while horizontal scrolling is prevented & handled by JS? Seems like it could use a comment as it's very counter-intuitive.

Copy link
Contributor Author

@ChaosExAnima ChaosExAnima May 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed about a comment, but thankfully if anyone removes it there'll be a warning in the console leading here: https://use-gesture.netlify.app/docs/extras/#touch-action

Merged via the queue into main with commit 9860046 May 30, 2025
55 checks passed
@ChaosExAnima ChaosExAnima deleted the 34852-fix-profile-scroll branch May 30, 2025 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/web interface Related to the Mastodon web interface bug Something isn't working build-image Build a container image for this PR ui Front-end, design
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot scroll on profiles on mobile
3 participants