Clicking in a text input area sometimes sets the text cursor incorrectly
ShingenPizza
When you enter some text into the VRC pop-up, and then click to the left or right of it, VRC sometimes places the text cursor (blinking vertical line) one character off to the center.
STR
- start VRC
- find a text field (from my tests it can be any of Unity UI Input Field, TMP Input Field, or VRCUrl Input Field, so any video player should work) and click on it
- in the VRChat's pop-up input box enter any text, starting and ending with, as an example, 'l' (lowercase L) - do not submit!
- still in that pop-up box, click the empty space on the left or right of the text
what should've happened:
- the text cursor is set to the front (before first letter) or end (after the last letter) respectively
what happens:
- the text cursor is set between 1st and 2nd character, or between last and the previous to last letters respectively (1 off to the center of the text).
the 'buggy' characters include the mentioned 'l' (lowercase L), 'i', '!', and '|' (pipe) (so, like, only the single-pixel wide characters?).
sometimes, the set of 'buggy' letters grows to: qrtyipsdfghjklzcb under unknown conditions to then just fix itself.
notes:
sometimes you can make it behave correctly, if instead of just "to the left/right" of the inputted text, you click in an area that is a bit to the lower left/upper right from that edge (but not too far away from the text!)
the above STR are my experience with straightforward inputs in my private world.
weirdly enough, when i entered Popcorn Palace and tested their inputs, they sometimes behaved correctly, and sometimes not.
i can't really make any sense of it, and i don't think further random clicking is worth my time if i can't just look into the code, so i'll just leave it at that unless you need more info.
also, not sure if i should make it a separate report, but while double-clicking on a word in this input box gives the usual text editor "select whole word" behavior, double clicking in the space before or after the text will just select that edge letter, instead of selecting the whole edge word.
and while wer'e at it, the VRC pop-up for the TMP input field is not centered, and does not show the placeholder value when empty, like the Unity UI/VRCUrl ones do.
Log In