Fixed out of range issue when dragging on a empty field.
Fixed out of range issue when dragging on a empty field.
How to reproduce:
1. Open the “IN-83466_repro“ project
2. Select Window → My Editor Window
3. Continuously click on the TextField and drag the window
4. Repeat the 3rd step several times
5. Observe the Console
Expected result: No errors are thrown
Actual result: “ArgumentOutOfRangeException“ error is thrown
Reproducible with: 2022.3.28f1, 2022.3.45f1, 6000.0.18f1
Not reproducible with: 2021.3.43f1, 2022.3.27f1
Reproducible on: Windows 10
Not reproducible on: No other environment tested
Notes:
The issue is inconsistent, if it does not reproduce, keep repeating step 3
Error: ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
UnityEngine.TextCore.Text.TextHandle.LastIndexOf (System.Char value, System.Int32 startIndex)
Prioritise and Follow this issue
Have a workaround or additional info about this issue?