steipete/PSPDFTextView — pull request #17 by hpique (2014-06-13 20:52:34+00:00)
Title: Caret fix

The caret is sometimes off by a pixel. When this happens, scrolling to its rect produces a little 1 pixel bounce. See:

![bug](https://cloud.githubusercontent.com/assets/912531/3275528/8103474c-f33c-11e3-8348-af0e8714967c.gif)

To avoid this, we scroll to its center instead. Result:

![fixed](https://cloud.githubusercontent.com/assets/912531/3275531/85d75998-f33c-11e3-93a2-69719bb714dc.gif)