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 root element of IntersectionObserver #12735

Merged
merged 1 commit into from
Dec 31, 2019

Conversation

panarom
Copy link
Contributor

@panarom panarom commented Dec 30, 2019

was previously using the <ScrollableList element, rather than the browser viewport, meaning
• hideIfNotIntersecting was never called
• when going <Back from a status update to a list view (e.g. home timeline), handleIntersection was called on ALL statuses (however many of them) at once, since they were all intersecting with the <ScrollableList element (rather than just the few in the browser viewport)

@panarom panarom force-pushed the issue-12455—slow-back-button branch from 9be6819 to 374d2cf Compare December 31, 2019 18:56
@Gargron Gargron merged commit 2a5da8c into mastodon:master Dec 31, 2019
panarom added a commit to panarom/mastodon that referenced this pull request Jan 2, 2020
…lableList is restored"

This reverts commit 07e2614.

accidentally merged spurious code in mastodon#12661.  mastodon#12735 removes the slowdown that this code was trying to solve; and other functionality successfully restores the view state of the list
panarom added a commit to panarom/mastodon that referenced this pull request Jan 2, 2020
… identical value"

This reverts commit c93df21.

accidentally merged spurious code in mastodon#12661.  mastodon#12735 removes the slowdown that this code was trying to solve; and other functionality successfully restores the view state of the list
Gargron pushed a commit that referenced this pull request Jan 2, 2020
* Revert "persist last-intersected status update and restore when ScrollableList is restored"

This reverts commit 07e2614.

accidentally merged spurious code in #12661.  #12735 removes the slowdown that this code was trying to solve; and other functionality successfully restores the view state of the list

* Revert "cache currently-viewing status id to avoid calling redux with identical value"

This reverts commit c93df21.

accidentally merged spurious code in #12661.  #12735 removes the slowdown that this code was trying to solve; and other functionality successfully restores the view state of the list
umonaca pushed a commit to umonaca/mastodon that referenced this pull request May 14, 2020
umonaca pushed a commit to umonaca/mastodon that referenced this pull request May 14, 2020
umonaca pushed a commit to umonaca/mastodon that referenced this pull request May 16, 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