It works, however, the coordinates of this.add.dom(0, 0) are the top left of the DOM , not the canvas. When you resize the browser or scroll, the input is not staying in place.
Is this behavior going to be changed in future releases, or am I looking at a weeks worth of coding with painful trial and error just so the user can have the feedback of getting a blinking cursor when the click the text input?
I still don’t get how to fix the element in the canvas and have it scale with the scale manager. My current solution doesn’t allow mobile users to input a number as it doesn’t pop up their keyboard.
Is it possible to use inside the canvas at all? iOS needs a text input area to pop up the keyboard, even if the scaling is wonky, it can work if it is invisible.
It’s a good workaround for some uses, but it isn’t coordinated with the Scale Manager. It would need to scale exactly along with it so it doesn’t move around. I just have one text input that only accepts numbers, and needs a cursor once like normal text input when active.
Maybe I misunderstood how DOM support was going to work? Even putting position to relative on the input-box it still moves around when scaled.
I really hope there is a possibility for text input. The biggest thing I learned is that without a native DOM element, iOS just won’t play ball with the native keyboard. It won’t ever be a native experience.
I guess with this solution you can more or less have pop up input, but it’s not good UX and might get blocked on mobile, where it is hard to figure out how to enable popups. I’m also using it for a dapp, so some native dapp browsers aren’t going to like the popup either.