Skip to content

Commit 240e5e9

Browse files
author
ignacio
committed
Reverts this commit slackhq@c79c314 breaking the keyboard panning gesture.
Fixes slackhq#198
1 parent db1dbd7 commit 240e5e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Classes/SLKTextViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ - (void)slk_reloadInputAccessoryViewIfNeeded
968968
}
969969
}
970970
// Reload only if the input views if the frame doesn't match the text input bar's.
971-
else if (self.textView.inputAccessoryView && CGRectGetHeight(self.textView.inputAccessoryView.frame) != CGRectGetHeight(self.textInputbar.bounds)) {
971+
else if (CGRectGetHeight(self.textView.inputAccessoryView.frame) != CGRectGetHeight(self.textInputbar.bounds)) {
972972
self.textView.inputAccessoryView = [self emptyInputAccessoryView];
973973
[self.textView refreshInputViews];
974974
}
@@ -1141,7 +1141,7 @@ - (void)slk_didShowOrHideKeyboard:(NSNotification *)notification
11411141
// Updates the dismiss mode and input accessory view, if needed.
11421142
[self slk_reloadInputAccessoryViewIfNeeded];
11431143

1144-
// Very important to invalidate this flag after the keyboard is dismissed or presented
1144+
// Very important to invalidate this flag after the keyboard is dismissed or presented, to start with a clean state next time.
11451145
self.movingKeyboard = NO;
11461146
}
11471147

0 commit comments

Comments
 (0)