azerion / phaser-input

Adds input boxes to Phaser like CanvasInput, but also works for WebGL and Mobile, made for Phaser only.
MIT License
203 stars 64 forks source link

caret position when text > input width #63

Closed DjLeChuck closed 7 months ago

DjLeChuck commented 6 years ago

Hi,

When the text of an input is greater than its width, the caret is blocked to the right even if we move backward with Begin or . However, the "real" caret continues to move in it's DOM input and when we type, the text is displayed to the right position, but we don't see it if it's to the left of the field for example.

The InputField.prototype.updateCursor seems to be the bad guy if I understand it correctly (source here).

It's a bug, isn't it?

JonGardner-RedSpace commented 6 years ago

I'm hitting the same problem, wondering if any progress has been made on this issue?