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

[ASRangeController] Fix stability of "minimum" rangeMode if the app has more than one layout before scrolling. #790

Merged
merged 2 commits into from
Feb 9, 2018

Conversation

appleguy
Copy link
Member

@appleguy appleguy commented Feb 5, 2018

This should result in memory savings in many apps, since errant relayouts are pretty common.

…as more than one layout before scrolling.

This should result in memory savings in many apps, since errant relayouts are pretty common.
Copy link
Member

@Adlai-Holler Adlai-Holler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good improvement.

Using scrollViewDidScroll: to trigger the state change may still be noisy. I've seen that callback fire errantly although I don't remember the details. One example might be if the user changes the content inset while setting up a header, and then changes the content offset to account for it.

If we used scrollViewWillBeginDragging: that would be very reliable and it would mean the user has engaged with the content. It would not cover animated programmatic scrolls but I think that's OK.

Copy link
Member

@nguyenhuy nguyenhuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve because the changes in ASRangeController LGTM. I'd defer to you two on the best API hook for the content offset flag.

@appleguy
Copy link
Member Author

appleguy commented Feb 8, 2018

@Adlai-Holler good suggestion to use beginDragging! I'll change to that.

Copy link
Member

@Adlai-Holler Adlai-Holler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Big big improvement. Ship!

@TextureGroup TextureGroup deleted a comment Feb 8, 2018
@appleguy appleguy merged commit 31227da into master Feb 9, 2018
@appleguy appleguy deleted the RangeModeStability branch February 9, 2018 19:04
bernieperez pushed a commit to AtomTickets/Texture that referenced this pull request Apr 25, 2018
…as more than one layout before scrolling. (TextureGroup#790)

This should result in memory savings in many apps, since errant relayouts are pretty common.
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.

None yet

3 participants