Permalink
Browse files

Format a tiny bit

  • Loading branch information...
1 parent fde84cd commit 1b561ea2c3c89ec57fa0bb8280fbcc1db44e52c9 @alexzielenski committed Apr 6, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 ScrollToRefresh/src/EQSTRClipView.m
View
7 ScrollToRefresh/src/EQSTRClipView.m
@@ -35,6 +35,7 @@ - (NSPoint)constrainScrollPoint:(NSPoint)proposedNewOrigin { // this method dete
if (self.isRefreshing && scrollValue <= 0) { // if we are refreshing
if (over) // and if we are scrolled above the refresh view
proposedNewOrigin.y = 0 - self.headerView.frame.size.height; // constrain us to the refresh view
+
return NSMakePoint(constrained.x, proposedNewOrigin.y);
}
return constrained;
@@ -51,12 +52,12 @@ - (NSRect)documentRect { //this is to make scrolling feel more normal so that th
return sup;
}
- (BOOL)isRefreshing {
- return [(EQSTRScrollView*)self.superview isRefreshing];
+ return [(EQSTRScrollView *)self.superview isRefreshing];
}
- (NSView*)headerView {
- return [(EQSTRScrollView*)self.superview refreshHeader];
+ return [(EQSTRScrollView *)self.superview refreshHeader];
}
- (CGFloat)minimumScroll {
- return [(EQSTRScrollView*)self.superview minimumScroll];
+ return [(EQSTRScrollView *)self.superview minimumScroll];
}
@end

0 comments on commit 1b561ea

Please sign in to comment.