Skip to content

Commit

Permalink
fix bug when keyboard hide and show quickly
Browse files Browse the repository at this point in the history
# Conflicts:
#	TPKeyboardAvoiding/UIScrollView+TPKeyboardAvoidingAdditions.m
  • Loading branch information
amoblin authored and michaeltyson committed Nov 8, 2020
1 parent 90b94cc commit e5d34eb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ - (void)TPKeyboardAvoiding_keyboardWillShow:(NSNotification*)notification {
CGRect beginKeyboardRect = [self convertRect:[[info objectForKey:_UIKeyboardFrameBeginUserInfoKey] CGRectValue] fromView:nil];
CGRect endKeyboardRect = [self convertRect:[[info objectForKey:_UIKeyboardFrameEndUserInfoKey] CGRectValue] fromView:nil];
if (CGRectIsEmpty(endKeyboardRect)) {
self.keyboardAvoidingState.keyboardVisible = NO;
return;
}

Expand Down

0 comments on commit e5d34eb

Please sign in to comment.