mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
#1532 (excess traversal animation)
This commit is contained in:
parent
d882618136
commit
b109acf473
1 changed files with 12 additions and 10 deletions
|
@ -957,16 +957,18 @@
|
|||
|
||||
self.traverseBottomConstraint.constant = appDelegate.detailViewController.view.safeAreaInsets.bottom / 2;
|
||||
|
||||
[UIView animateWithDuration:.24 delay:0
|
||||
options:UIViewAnimationOptionCurveEaseInOut
|
||||
animations:^{
|
||||
[self.traverseView setNeedsLayout];
|
||||
self.traverseView.alpha = 1;
|
||||
self.traversePinned = YES;
|
||||
[self.view layoutIfNeeded];
|
||||
} completion:^(BOOL finished) {
|
||||
|
||||
}];
|
||||
if (self.traverseView.alpha == 0) {
|
||||
[UIView animateWithDuration:.24 delay:0
|
||||
options:UIViewAnimationOptionCurveEaseInOut
|
||||
animations:^{
|
||||
[self.traverseView setNeedsLayout];
|
||||
self.traverseView.alpha = 1;
|
||||
self.traversePinned = YES;
|
||||
[self.view layoutIfNeeded];
|
||||
} completion:^(BOOL finished) {
|
||||
|
||||
}];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {
|
||||
|
|
Loading…
Add table
Reference in a new issue