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

Collection View as background #8

Open
mburshteyn1 opened this issue May 30, 2013 · 1 comment
Open

Collection View as background #8

mburshteyn1 opened this issue May 30, 2013 · 1 comment

Comments

@mburshteyn1
Copy link

First of all thank you for making this control. I am having an issue placing an UICollectionView as a background view. Everything loads fine, but the scrolling stops working after 1 scroll. If paging is enabled it allows me to scroll 1 page and if not then 1 swipe. Any suggestions?

@mburshteyn1
Copy link
Author

I didn't want to dig too deeply into the problem, but what worked for me for now was this change:

-(UIView*)hitTest:(CGPoint)point withEvent:(UIEvent*)event { if (([self.backgroundView pointInside:point withEvent:event] && _backgroundInteractionEnabled) || [self.backgroundView.class isSubclassOfClass:[UIScrollView class]]){ CGFloat visibleBackgroundViewHeight = self.backgroundHeight - self.foregroundScrollView.contentOffset.y; if (point.y < visibleBackgroundViewHeight){ return self.backgroundView; } } return [super hitTest:point withEvent:event]; }

@modocache modocache added bug and removed bug labels May 27, 2014
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

No branches or pull requests

2 participants