Permalink
Browse files

fix0r

  • Loading branch information...
ccgus committed Mar 25, 2012
1 parent d5841b1 commit 1e1bee3182c2d4bb1d21b8ff8b2b32ac816ed5f8
Showing with 4 additions and 1 deletion.
  1. +4 −1 EGOTextView/EGOTextView.m
@@ -945,7 +945,10 @@ - (void)selectionChanged {
CGRect frame = _caretView.frame;
frame.origin.y -= (self.font.lineHeight*2);
- [self scrollRectToVisible:[_textContentView convertRect:frame toView:self] animated:YES];
+
+ if (!(_selectedRange.location == 0 && _selectedRange.length == 0)) {
+ [self scrollRectToVisible:[_textContentView convertRect:frame toView:self] animated:YES];
+ }
[_textContentView setNeedsDisplay];

0 comments on commit 1e1bee3

Please sign in to comment.