Bug 271749

Summary: When typing quickly, the cursor remains at the position for some time before entering a character
Product: WebKit Reporter: Maxim <maximco36895>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: Unspecified   
OS: Unspecified   

Description Maxim 2024-03-27 00:49:38 PDT
If you select the text and start typing (very quickly), then part of the text is entered in a different place and backwards. This is due to the fact that for some time, the cursor remains at the position before the character is entered.
How to repeat:
1. https://jsfiddle.net/2qw3csx8/
2. highlight the text and enter the text quickly.

Additional Information
On MacOS, enable the ability to select and drag text with three fingers on the trackpad.
The input field has more than 2000 characters.
Do not lift your fingers before you start typing
"three finger drag" https://support.apple.com/en-us/102341
Comment 1 Alexey Proskuryakov 2024-03-27 17:15:35 PDT
I was able to reproduce some strange behaviors when doing this, but I don't think that I'm seeing anything that is clearly a bug. 

As the steps above suggest to not lift one's fingers before you typing, that means that selection change is ongoing, and selection can further change if fingers slightly move. This just doesn't seem like a scenario where one can expect consistent results.

Please elaborate if there is some aspect here that is clearly problematic.
Comment 2 Radar WebKit Bug Importer 2024-04-03 00:50:13 PDT
<rdar://problem/125833997>