Skip to content

Instantly share code, notes, and snippets.

@nheagy
Created March 27, 2014 18:53
Show Gist options
  • Save nheagy/9815232 to your computer and use it in GitHub Desktop.
Save nheagy/9815232 to your computer and use it in GitHub Desktop.
Edge-to-edge horizontal paging for CCScrollView.
@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