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

Fix column swiping animation logic #15301

Merged
merged 1 commit into from
Dec 7, 2020

Conversation

ClearlyClaire
Copy link
Contributor

From the start, swiping columns was highly unreliable because the logic could change ReactSwipeableViews's animateTransitions property mid-swipe.

PR #11200 partially fixed this, but at the unintended cost of disabling the swipe animation altogether.

This PR changes the logic behind shouldAnimate to only disable the swiping animation at the end of a column change not initiated by ReactSwipeableViews.

From the start, swiping columns was highly unreliable because the logic
could change `ReactSwipeableViews`'s `animateTransitions` property
mid-swipe.

PR mastodon#11200 partially fixed this, but at the unintended cost of disabling the
swipe animation altogether.

This PR changes the logic behind `shouldAnimate` to only disable the swiping
animation at the end of a column change not initiated by `ReactSwipeableViews`.
@Gargron Gargron merged commit 0b43732 into mastodon:master Dec 7, 2020
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.

None yet

2 participants