Skip to content
Open
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
4 changes: 3 additions & 1 deletion LGPlusButtonsView/LGPlusButtonsView.m
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ - (instancetype)initWithNumberOfButtons:(NSUInteger)numberOfButtons

_contentView = [WrapperView new];
_contentView.backgroundColor = [UIColor clearColor];
_contentView.userInteractionEnabled = YES;
_contentView.userInteractionEnabled = NO;
[self addSubview:_contentView];

_buttonsContentView = [WrapperView new];
Expand Down Expand Up @@ -1423,6 +1423,7 @@ - (void)hideAnimated:(BOOL)animated completionHandler:(void(^)())completionHandl

- (void)showButtonsAnimated:(BOOL)animated completionHandler:(void(^)())completionHandler
{
self.contentView.userInteractionEnabled = YES;
if (self.isFirstButtonIsPlusButton)
{
LGPlusButton *plusButton = _buttonsArray[0];
Expand Down Expand Up @@ -1486,6 +1487,7 @@ - (void)showButtonsAnimated:(BOOL)animated completionHandler:(void(^)())completi

- (void)hideButtonsAnimated:(BOOL)animated completionHandler:(void(^)())completionHandler
{
self.contentView.userInteractionEnabled = NO;
if (self.isFirstButtonIsPlusButton)
{
LGPlusButton *plusButton = _buttonsArray[0];
Expand Down