Bug 271749 - When typing quickly, the cursor remains at the position for some time before entering a character
Summary: When typing quickly, the cursor remains at the position for some time before ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Safari 17
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-03-27 00:49 PDT by Maxim
Modified: 2024-04-03 00:50 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>