Automattic / Automattic/simplenote-ios

Cursor Jump While Editing

Open
#1,483 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[feature] editor bug
Dominant language
Swift
Stars
2.1k
Forks
297
Avg merge
13h 25m
Merged PRs (30d)
6

Description

I am having an infuriating problem with the iOS app. I just tried uninstalling, rebooting my phone (iPhone 8, iOS 15.4.1), and reinstalling the app, and it did not help. The problem is that as I am typing, after every few words, it undoes what I just typed. It also simultaneously jumps to the bottom of the note. Sometimes it immediately jumps back up to where my cursor was before I started typing and sometimes it stays at the bottom and I have to scroll back up. The only way to get it to save anything I type is to hit the back arrow or the button to hide the keyboard, but I have to do it very quickly after every couple of words because if I type 4-5 words it is too late and it deletes them. And then I have to scroll back up to the top (if it jumped) before I can try again.

It seems to be only happening on some of my notes, but they are ones I need to use frequently. I tried copying and pasting the entire note into a new blank note and the problem started happening again after a few minutes. I took a video of the behavior that I could share if that helps.

I have had the same problem on and off for at least the last 4 years (I know because I emailed your support about it before) but it was not as severe, because I could usually type more like 10 words instead of 2.

Expected

Cursor shouldn't be jumping around and keep the position where the typing happens.

Observed

When it's a long text or more than one page, cursor can jump between pages.

I found a closed issue: #888

And a similar Android issue: https://github.com/Automattic/simplenote-android/issues/647

Not sure are this is the same or related.

Reproduced
Screen recording:

https://user-images.githubusercontent.com/1813857/168823287-95630fdd-9927-4113-9758-4e146e207812.mov

Make Model iOS Version App Version
iPhone 8 MQ7X2LL/A iOS 15.4.1 Simplenote 4.47

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the cursor and scroll behavior on the reported iPhone 8, iOS 15.4.1, Simplenote 4.47 setup using a long note, then compare the behavior with closed issue #888 and Android issue #647. Done means typing no longer deletes recent text or moves the cursor away from its editing position.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.