Permalink
Browse files

Always setting the content offset.

- should fix issue #3
- should remove some animation quirks
- doesn't animate quite as nicely when pulling quickly
- temporary solution until something better comes up
  • Loading branch information...
matej committed Mar 9, 2013
1 parent e0fa6a2 commit 89b1b77f671a9722a5d9fb5c71e7c9eb4b7babe5
Showing with 4 additions and 3 deletions.
  1. +4 −3 MBPullDownController/MBPullDownController.m
@@ -137,16 +137,17 @@ - (void)setOpen:(BOOL)open animated:(BOOL)animated {
if (open) {
updateInserts();
- dispatch_async(dispatch_get_main_queue(), ^{
- [scrollView setContentOffset:CGPointMake(0.f, -offset) animated:animated];
- });
} else {
if (animated) {
[UIView animateWithDuration:.3f animations:updateInserts];
} else {
updateInserts();
}
}
+
+ dispatch_async(dispatch_get_main_queue(), ^{
+ [scrollView setContentOffset:CGPointMake(0.f, -offset) animated:animated];
+ });
}
#pragma mark - Container controller

0 comments on commit 89b1b77

Please sign in to comment.