Glitch-Shrike/app/javascript/mastodon/features/ui/components
ThibG 0b437325dc
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>
2020-12-07 20:07:24 +01:00
..
__tests__
actions_modal.js
audio_modal.js
block_modal.js
boost_modal.js
bundle.js
bundle_column_error.js
bundle_modal_error.js
column.js
column_header.js
column_link.js
column_loading.js
column_subheading.js
columns_area.js
compose_panel.js
confirmation_modal.js
document_title.js
drawer_loading.js
embed_modal.js
focal_point_modal.js
follow_requests_nav_link.js
image_loader.js
link_footer.js
list_panel.js
media_modal.js Fix not being able to open audio modal in web UI (#15283) 2020-12-07 04:29:37 +01:00
modal_loading.js
modal_root.js
mute_modal.js
navigation_panel.js
notifications_counter_icon.js
report_modal.js
tabs_bar.js
upload_area.js
video_modal.js
zoomable_image.js