Created
January 26, 2015 22:11
-
-
Save blixt/81abe1ee4c2db1de482f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset { | |
| if (scrollView.contentOffset.x < -scrollView.contentInset.left) { | |
| targetContentOffset->x = -scrollView.contentInset.left; | |
| } else { | |
| *targetContentOffset = CGPointZero; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment