So when I have an HTML Input element on IOS, clicking in it causes the keyboard to open, but you can’t type.
I’ve traced the code into PlayCanvas Stable and it is not calling either preventDefault or stopPropagation. Is there somewhere else this might be happening?
Does this happen when you launch from the Editor or in a published build? If it’s happening in a published build can you also check if it happens when you launch from the Editor?
It doesn’t happen on desktop - only on iOS. I’ve tried launching from my phone through the editor - but I can’t seem to tap anything so I can’t get to that screen
It’s hard to click Launch from the Editor on mobile - alternatively you could try manually entering the launch URL on your phone? I noticed when playing your game on my Mac that when I typed my username, if I typed it fast some characters were disappearing. Makes me think that maybe you’re doing something with that input?
It looks like I can’t tap anything either on my iPad - Not in the launch URL or the published app. Do you think you can fix that? I would guess it’s some touch handler that needs to be registered.
I’m not sure what’s going on there, but it looks like something is swallowing touch events. Can you try adding touch events on the window or the document instead of app.touch?
I don’t think there is something we’d do that would break input fields. I made a simple example project which seems to work on my iPad: http://playcanvas.com/editor/scene/416032/launch. I think maybe angular or something in there makes that field work differently in your project, because it definitely does something other than the default inputs - like I said before if you type stuff fast, it seems to make characters disappear.
What if you remove everything from the input field (if you haven’t already). That means ng-keypress stuff ng-change stuff, just put a completely vanilla input field. Does it still act like that?
I do hate this crap LOL. Spend weeks writing a game and worrying about data rates, compress etc. Then I can’t get a bloody input control to work…
I’m figuring it must be something to do with the touch events, but I’ve disabled everything of mine now I think. Still a problem. I found a few things on Google that sounded similar but none of them work.
My feeling is this is Angular doing something weird. The input fields do work on my Android phone though. Another thing I’d try just for debugging would be to add a plain input field directly on the document, so outside any angular views and see if that works.