Fix not working two step caret movement on iOS devices. #17481
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Suggested merge commit message (convention)
Fix (typing): Fix not working two-step caret movement on iOS devices. Closes #17171
Additional information
It looks like
mousedown
events behaves differently on iOS and Android. On iOS, it's called after selection change, but on Android it's called immediately aftertouchstart
which happens before selection change. I addedtouchstart
event observer, to track clicks before selection change occurs.