The caret moves back to the previous position in paragraph1.

We have been getting a very serious issue on the editor in iOS Safari. We open the editor in a Web View in our iOS app. The issue is every time we tap on the editor, the cursor goes back to the previous position. This only happens when the keyboard is hidden and the editor is in a blurred state.
When we investigated this, it looks like this piece of code is the reason for this.

When we increased the timeout to 2000ms, the issue stopped.
It does happen only on WebView, not in the Safari.
It can be worked around simply by changing the selection again.
If you'd like to see this fixed sooner, add 馃憤 to this post.
Hi, I've checked your report and can't reproduce it in Safari and WebView browser (iPad iOS 12.4.1). Can you share your iOS version, device and project details? It looks like it's not CKEditor 5 issue, but your integration.
Hi @Mgsy
Here is the code we have tested this on. It does not happen every time the keyboard opens but if you keep closing and opening the keyboard for a couple of mins it always happens.
https://github.com/mohit-sentieo/ckeditor-issue
To reproduce just tap the editor, then hide the keyboard, then tap again. Keep repeating this and a few times later, the cursor will start reverting to it's original position.
Unfortunately, I still can't reproduce it, even in a sample from your repository. It might be a problem related to your integration. Can you check whether you can reproduce it in our documentation?
Hi @Mgsy
Is it possible to call you ? We are actually looking to buy the license and waiting on only this issue for the last 2 weeks.
In the code you can see that we have removed everything except the most basic WebView in iOS and the issue still shows. I am not sure how it can be related to our integration.
@mohit-sentieo, unfortunately, dedicated support is available only for licensed clients. However, please try to reproduce this issue in our documentation sample, as I suggested above. It is key information whether you're able to reproduce it in our sample or only within your application. Depends on the result, we might try to investigate it.
@Mgsy Please see the issue replicated on the documentation sample.
It was reproduced in a single attempt. Also worth noting for reproducing on your side, it happens in a WebView, not Safari Browser.
You can see the cursor jumping to 'q'.

Thank you. It's interesting that I can't reproduce it, even in a WebView. Can I ask you to share details about your device (including iOS version)?
Sure. The device is:-
iPad Pro 11 inc
iOS 12.4
Any luck ? We tried it on a previous generation iPad Pro with same iOS version and we were still able to easily replicate it.
Hi @Mgsy
We have purchased a license for CkEditor. Is it possible to discuss this over a call now ? We are targeting October mid to integrate this but this bug is a serious blocker.
Thanks in advance!
@mohit-sentieo, please contact us directly through our support channel (https://ckeditor.com/contact/) and attach as many information about your issue as you can.
Also, please keep your subscription data (such as organization ID) confidential and don't disclose them on public channels, such as GitHub.
I'm able to reproduce this issue in WebView on native iOS application. I've updated the description in the first post.
@Reinmar This is a serious blocking issue for our CKEditor integration.
Most helpful comment
I'm able to reproduce this issue in WebView on native iOS application. I've updated the description in the first post.