Skip to content

Fix column swiping animation logic#15301

Merged
Gargron merged 1 commit intomastodon:masterfrom
ClearlyClaire:fixes/swiping
Dec 7, 2020
Merged

Fix column swiping animation logic#15301
Gargron merged 1 commit intomastodon:masterfrom
ClearlyClaire:fixes/swiping

Conversation

@ClearlyClaire
Copy link
Copy Markdown
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.

2 participants