Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

[ASCollectionView] scrollableDirections must account for alwaysBounce(Vertical | Horizontal) - #1327

Merged
appleguy merged 1 commit into
facebookarchive:masterfrom
samhsiung:fix_scrollable_directions
Mar 6, 2016
Merged

[ASCollectionView] scrollableDirections must account for alwaysBounce(Vertical | Horizontal)#1327
appleguy merged 1 commit into
facebookarchive:masterfrom
samhsiung:fix_scrollable_directions

Conversation

@samhsiung

Copy link
Copy Markdown
Contributor

If a UIScrollVIew has alwaysBounce(Vertical|Horizontal) = YES then it will always be scrollable in that direction. Adding these additional checks will allow us to handle cases where an ASCV without a flow layout has a data source whose first page load doesn't expand contentSize beyond bounds in the desired scroll direction. When the user scrolls in the intended direction, batch fetching will be triggered if there is more content to load.

@appleguy

appleguy commented Mar 6, 2016

Copy link
Copy Markdown
Contributor

Great improvement! @samhsiung should make sure the ASBatchContext is triggering even without scrolling in a scenario like this, though it is certainly good to ensure the user can force a load.

Ideally we would not re-access bounds, contentSize, contentInset properties here - but this is a micro-optimization and not essential.

@appleguy appleguy changed the title [ASCollectionView] Consider alwaysBounce(Vertical|Horizontal) for scrollableDirections [ASCollectionView] scrollableDirections must account for alwaysBounce(Vertical | Horizontal) Mar 6, 2016
@appleguy appleguy added this to the 1.9.7 milestone Mar 6, 2016
appleguy added a commit that referenced this pull request Mar 6, 2016
[ASCollectionView] scrollableDirections must account for alwaysBounce(Vertical | Horizontal)
@appleguy
appleguy merged commit 354ccf3 into facebookarchive:master Mar 6, 2016
peter-iakovlev pushed a commit to peter-iakovlev/AsyncDisplayKit that referenced this pull request Feb 13, 2019
* fix SIMULATE_WEB_RESPONSE not imported facebookarchive#449

* Fix to make rangeMode update in right time

* remove uncessary assert

* Fix collection cell editing bug for iOS 9 & 10

* Revert "Fix collection cell editing bug for iOS 9 & 10"

This reverts commit 06e18a10596622ff8a68835c95a23986d7bf61ea.

* fix a11y update when insert view
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants