Permalink
Browse files

bug fix where bottom was pullable when displayed

  • Loading branch information...
1 parent 147db86 commit 5fe365b8550697798b2a3117a220c27749be8b89 @rnystrom committed Nov 7, 2012
View
@@ -4,6 +4,7 @@ RNSwipeViewController
Seemlessly integrate beautifully functional view controllers into your app that are accessible with just the swipe of a finger. Inspiration for this project came from [David Smith](http://david-smith.org) and his gorgeous app [Check The Weather](http://checktheweather.co).
~~Note: As of now, RNSwipeViewController is intended for use with portrait orientation on iPhone/iPod only.~~
+
Orientation support added on 11/6/12. Still intended devices are iPhone/iPod.
#### [View the Docs](http://rnystrom.github.com/RNSwipeViewController/index.html) ####
@@ -607,7 +607,7 @@ - (CGFloat)_filterBottom:(CGFloat)translation {
return 0.f;
}
- if (abs(_centerContainer.top) >= self.bottomVisibleHeight) {
+ if (fabsf(_centerContainer.top) >= self.bottomVisibleHeight) {
return self.bottomVisibleHeight * -1;
}
return translation + _centerLastPoint.y;

0 comments on commit 5fe365b

Please sign in to comment.