Created
March 27, 2014 18:53
-
-
Save nheagy/9815232 to your computer and use it in GitHub Desktop.
Edge-to-edge horizontal paging for CCScrollView.
This file contains 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
@implementation NHEdgeToEdgeScrollView | |
- (BOOL)hitTestWithWorldPos:(CGPoint)pos | |
{ | |
pos = [self convertToNodeSpace:pos]; | |
if ((pos.y < 0) || (pos.y > self.contentSizeInPoints.height)) | |
{ | |
return(NO); | |
} | |
return(YES); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment