]> cat aescling's git repositories - mastodon.git/commit
Fix timeline jumps (#10001)
authorThibG <thib@sitedethib.com>
Mon, 11 Feb 2019 12:19:59 +0000 (13:19 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 11 Feb 2019 12:19:59 +0000 (13:19 +0100)
commitaee93bfc9c7169f2e784de8572263de911922760
tree4056fd7e74a8a01f4650dbc78bd9f475bd6e7494
parentc0a564feaa11c072da9c2be892643db55659ae38
Fix timeline jumps (#10001)

* Avoid two-step rendering of statuses as much as possible

Cache width shared by Video player, MediaGallery and Cards at the
ScrollableList level, pass it down through StatusList and Notifications.

* Adjust scroll when new preview cards appear

* Adjust scroll when statuses above the current scroll position are deleted
app/javascript/mastodon/components/media_gallery.js
app/javascript/mastodon/components/scrollable_list.js
app/javascript/mastodon/components/status.js
app/javascript/mastodon/features/notifications/components/notification.js
app/javascript/mastodon/features/status/components/card.js
app/javascript/mastodon/features/video/index.js