]> cat aescling's git repositories - mastodon.git/commit
Fix column swiping animation logic (#15301)
authorThibG <thib@sitedethib.com>
Mon, 7 Dec 2020 19:07:24 +0000 (20:07 +0100)
committerGitHub <noreply@github.com>
Mon, 7 Dec 2020 19:07:24 +0000 (20:07 +0100)
commit0b437325dc93a1d28202b5ff30eaafc9b4e571b7
tree1d6ab1b62fc3ae10c0d3de3bf2e24f994b88e5c0
parent9620ee90be7e04b3616ce4b851abb63dbba7af7f
Fix column swiping animation logic (#15301)

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`.

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
app/javascript/mastodon/features/ui/components/columns_area.js