Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Allows showing the typing indicator when auto-completing and at any t…
Browse files Browse the repository at this point in the history
…ableView offset position. This logic can be re-inforced in the subclass anyway.
  • Loading branch information
Ignacio Romero Zurbuchen committed Mar 30, 2016
1 parent 7ddc7bc commit 23b5202
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Source/SLKTextViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -798,12 +798,7 @@ - (void)didCancelTextEditing:(id)sender
- (BOOL)canShowTypingIndicator
{
// Don't show if the text is being edited or auto-completed.
if (_textInputbar.isEditing || self.isAutoCompleting) {
return NO;
}

// Don't show if the content offset is not at top (when inverted) or at bottom (when not inverted)
if ((self.isInverted && ![self.scrollViewProxy slk_isAtTop]) || (!self.isInverted && ![self.scrollViewProxy slk_isAtBottom])) {
if (_textInputbar.isEditing) {
return NO;
}

Expand Down

0 comments on commit 23b5202

Please sign in to comment.