Skip to content
Snippets Groups Projects
Unverified Commit bb5e95ed authored by Simon B. Støvring's avatar Simon B. Støvring Committed by GitHub
Browse files

Preserves position in line fragments when moving up and down (#57)

Ensures the location is preserved when navigating up and down between
line fragments using the keyboard. The behavior matches UITextView. The
videos below compares the behavior before and after these changes.

The implementation uses
[anchorPositionOffset](https://developer.apple.com/documentation/uikit/nstextselection/3801817-anchorpositionoffset?changes=la_3)
on NSTextSelection. TextKit 2 automatically populates this on macOS but
we need to do it manually on iOS to achieve the same behavior.
parent 5d35dc16
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment