Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AwesomeMenu.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ Pod::Spec.new do |spec|
spec.homepage = 'https://github.com/levey/AwesomeMenu'
spec.author = 'Levey Zhu'
spec.source = { :git => 'git@github.com:levey/AwesomeMenu.git', :tag => '2.0.0'}
spec.source_files = '/AwesomeMenu/AwesomeMenu/*'
spec.source_files = 'AwesomeMenu/AwesomeMenu/*'
spec.requires_arc = true
end
15 changes: 6 additions & 9 deletions AwesomeMenu/AwesomeMenu/AwesomeMenu.m
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,16 @@ - (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event
}
// if the menu state is expanding, everywhere can be touch
// otherwise, only the add button are can be touch
if (YES == [self isExpanded])
{
return YES;
}
else
{
return CGRectContainsPoint(self.startButton.frame, point);
}

return YES;
}

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
self.expanded = ![self isExpanded];
if (self.isExpanded){

self.expanded = NO;
}
}

#pragma mark - AwesomeMenuItem delegates
Expand Down