Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Backspace and scroll makes text jerk when deleting many newlines #1

@karpelcevs

Description

@karpelcevs

First, thanks for fixing most of the iOS7 bugs! Unfortunately, there are still some more.

In the example project, add to the text quite a few simple newlines: \n\n\n\n\n\n\n\n\n\n\. It works also with letters and newlines, such as a\na\na\na\na\n etc.
Launch the app, tap the text.

First, ensure-visible issues:

  1. Text isn't scrolled to bottom, it stays somewhere in the middle.
  2. Second tap also doesn't scroll to bottom even though caret is now there.

Now, start tapping backspace. Newlines are removed, however:

  1. Big text piece from above is flashing at the top of the view right after pressing backspace and disappearing again (as if scrolling up and then down again).
  2. Caret is jumping somewhere up and then down again (I suppose this is the reason for jerking, but it's just a guess).

Important note, this is reproducible only when text is added prior to editing. Adding newlines from keyboard and then removing them does not reproduce the behaviour.

I'm trying to fix it in my app myself right now. If I'm successful, will add a pull request as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions