-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cursor is placed in wrong place when text is already present in input #17
Comments
This is a tricky one. The html input is hidden when substituted. A mousedown on the substituted pixi-text switches the visibility to the html input. however, for the cursor to be set correctly, the input would've had to be visible before that mousedown occured. i'll have check if it's possible to trigger a synthetic copy of that exact mousedown event on the html input, and if that will actually set the cursor position. |
Maybe just show input at all times?
…On Fri, Feb 7, 2020 at 3:24 PM Mwni ***@***.***> wrote:
This is a tricky one. The html input is hidden when substituted. A
mousedown on the substituted pixi-text switches the visibility to the html
input. however, for the cursor to be set correctly, the input would've had
to be visible before that mousedown occured. i'll have check if it's
possible to trigger a synthetic copy of that exact mousedown event on the
html input, and if that will actually set the cursor position.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#17>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACHMDKABTBOXASPVRJZZXDRBVVLPANCNFSM4KROQNUA>
.
|
Well if that's an option for you. |
Steps to reproduce:
Current behavior:
Text cursor is placed in original location, in the middle
Expected behavior:
Text cursor is placed where mouse cursor clicked
Here's git showing this behavior:
https://giphy.com/gifs/hosFDTCEf9Zhldlf7O
The text was updated successfully, but these errors were encountered: