Skip to content
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

Bug/60538 misplaced cursor in comments text editor on ios #17880

Draft
wants to merge 5 commits into
base: release/15.3
Choose a base branch
from

Conversation

akabiru
Copy link
Member

@akabiru akabiru commented Feb 10, 2025

Ticket

https://community.openproject.org/wp/60538

What are you trying to accomplish?

Screenshots

What approach did you choose and why?

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

@akabiru akabiru self-assigned this Feb 10, 2025
@akabiru akabiru added the bugfix label Feb 10, 2025
@akabiru akabiru added this to the 15.3.x milestone Feb 10, 2025
@github-actions github-actions bot temporarily deployed to gh-6899875-pr-17880 February 10, 2025 14:41 Inactive
@github-actions github-actions bot temporarily deployed to gh-6899875-pr-17880 February 10, 2025 15:18 Inactive
@akabiru akabiru force-pushed the bug/60538-misplaced-cursor-in-comments-text-editor-on-ios branch from ac2aba5 to c3e27b4 Compare February 10, 2025 15:39
@github-actions github-actions bot temporarily deployed to gh-6899875-pr-17880 February 10, 2025 15:40 Inactive
An attempt to avoid cursor misplacement on iOS resulting from content overlay
[*with AI Help]

There appears to be a race condition between:
 1. The iOS virtual keyboard
 2. CKEditor's content area height adjustment
 3. The scroll positioning logic

To address this, focus the editor then wait for virtual keyboard (takes ~300-400ms acc to Apple) before scrolling the editor into view.
 > on iOS, the virtual keyboard animation takes ~300-400ms to complete, and during this time it's adjusting the viewport. This explains why you sometimes need to tap twice - the first focus attempt may be interrupted by the viewport changes.
@akabiru akabiru force-pushed the bug/60538-misplaced-cursor-in-comments-text-editor-on-ios branch from c3e27b4 to 6176547 Compare February 10, 2025 17:39
@github-actions github-actions bot temporarily deployed to gh-6899875-pr-17880 February 10, 2025 17:40 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant