Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a bug that AutoStateFooter(Normal) couldn't call refresh methodby tapping state label. It shouldn't be influenced by dragging logic. #1529

Merged
merged 1 commit into from
Jul 13, 2021
Merged
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
16 changes: 15 additions & 1 deletion MJRefresh/Custom/Footer/Auto/MJRefreshAutoStateFooter.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@

#import "MJRefreshAutoStateFooter.h"

@interface MJRefreshAutoFooter (TapTriggerFix)

- (void)beginRefreshingWithoutValidation;
@end


@implementation MJRefreshAutoFooter (TapTriggerFix)

- (void)beginRefreshingWithoutValidation {
[super beginRefreshing];
}

@end

@interface MJRefreshAutoStateFooter()
{
/** 显示刷新状态的label */
Expand Down Expand Up @@ -48,7 +62,7 @@ - (instancetype)setTitle:(NSString *)title forState:(MJRefreshState)state
- (void)stateLabelClick
{
if (self.state == MJRefreshStateIdle) {
[self beginRefreshing];
[super beginRefreshingWithoutValidation];
}
}

Expand Down