-
Notifications
You must be signed in to change notification settings - Fork 122
Fixed an issue where pasting long text and typing in the middle moved the cursor to the end. #2927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed an issue where pasting long text and typing in the middle moved the cursor to the end. #2927
Conversation
refs:MBL-17838 affects:Student, Teacher release note: Moved the cursor to the end when pasting long text test plan:
refs:MBL-17838 affects:Student, Teacher release note: Moved the cursor to the end when pasting long text test plan:
Release Note:Fixed an issue where pasting long text and typing in the middle moved the cursor to the end. Affected Apps: Student, Teacher
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get this strange behavior on iOS 17.5.1. Besides that, I think we can't just scroll to the end of the text (where attachments are) because the user is not necessarily pasting text at the end of the message. The original bug was about when you enter some characters after pasting a long text the characters are not entered to where the cursor is visible but instead at the end of the document. If we could fix that alone would be enough, if we could scroll to the end of the pasted text that would nice to have.
RPReplay_Final1728996199.MP4
refs: MBL-17838 affects: Student , Teacher release note: Moved the cursor to the end when pasting long text test plan:
refs:MBL-17838 affects:Student , Teacher release note:Moved the cursor to the end when pasting long text test plan:
refs:MBL-17838 affects:Student , Teacher release note:Moved the cursor to the end when pasting long text test plan:
Thanks for your comment and your are right. The issue is now fixed, but I removed the feature that scrolls to the bottom when pasting text. It was misleading because if the text was pasted in the middle, it would incorrectly scroll to the bottom. Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-10-15.at.23.42.27.mp4 |
refs:MBL-17838 affects:Student , Teacher release note:Moved the cursor to the end when pasting long text test plan:
refs:MBL-17838 affects:Student , Teacher release note: Fixed an issue where pasting long text and typing in the middle moved the cursor to the end. test plan:
refs:MBL-17838 affects:Student , Teacher release note:Fixed an issue where pasting long text and typing in the middle moved the cursor to the end. test plan:
refs:MBL-17838 affects:Student , Teacher release note: Fixed an issue where pasting long text and typing in the middle moved the cursor to the end. test plan:
refs:MBL-17838 affects:Student , Teacher release note: Fixed an issue where pasting long text and typing in the middle moved the cursor to the end. test plan:
refs:MBL-17838 affects:Student , Teacher release note:Fixed an issue where pasting long text and typing in the middle moved the cursor to the end. test plan:
refs: MBL-17838 affects: Student , Teacher release note: Fixed an issue where pasting long text and typing in the middle moved the cursor to the end. test plan:
refs:MBL-17838 affects: Student , Teacher release note: Fixed an issue where pasting long text and typing in the middle moved the cursor to the end. test plan:
refs:MBL-17838 affects: Student , Teacher release note:Fixed an issue where pasting long text and typing in the middle moved the cursor to the end. test plan:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA + 1
The original issue is fixed, but there is a known issue with InstUI.TextEditorCell
on iOS 17.
It's mentioned in the PR introducing it, but please add this text to the code:
As a doc comment just before InstUI.TextEditorCell
:
/// Known issue on iOS 17 (but not on iOS 16):
/// TextEditor jumps to the top, when the top was already scrolled out of view, and some text is pasted at or near the bottom.
/// Continuing typing jumps back to the cursor, which stayed correctly at the end of the pasted text.
Please test this behaviour on iOS 18 as well, if you can, and add that to the doc comment accordingly. (I only have iOS 17 test devices at the moment)
Yes, I have tested it on iOS 18.0.1, and it is working fine. This is a standard UITextView, an older controller. |
Sorry, I tested the right thing, but wrote about the other thing... anyway, please disregard the PR comment above about the doc comment in code. Approving |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA + 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA + 1
refs: MBL-17838
affects: Student , Teacher
release note: Fixed issues after pasting long text in inbox messages.
Fixed an issue where pasting long text and typing in the middle moved the cursor to the end.
Test Plane
1- Open new message.
2- Set long text.
3- Start type in the middle on the text and set new line will work fine.
Screenshots
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-10-11.at.13.51.35.mp4
Checklist