Skip to content

TextField and GTextInput prevent receiving touches when in focus on iOS #2392

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

Open
erFra17 opened this issue Feb 14, 2025 · 1 comment
Open

Comments

@erFra17
Copy link

erFra17 commented Feb 14, 2025

Axmol version: 2.1.0
Tested on iPhone SE, version 15.6.1
XCode 15.0.1

UPDATE: also the GTextInput from fairy does the same.

When a TextField is in focus, the GLView does not receive touches, hence, when tapping on a button (or anything else) it will only dismiss the keyboard. This means that the user always needs to tap twice in order to press anything on screen. This is especially troublesome if the UI has buttons to manage such input (for example to clear the text or just confirm the input).

In my case, I'm using it in a chat, and in order to send a message, the user needs to dismiss the keyboard first and then press the button to send the message, feels very buggy, but also in case they just want to exit the screen, they again need to tap twice.

I'm kind of surprise nobody has raised this issue before, looking at axmol code, seems it's just the way it was thought to be working, but UX wise is pretty bad.

Thanks in advance for reading this.

@erFra17 erFra17 changed the title TextField prevents receiving touches when in focus on iOS TextField and GTextInput prevent receiving touches when in focus on iOS Feb 17, 2025
@On-Arap
Copy link

On-Arap commented Mar 10, 2025

I'm facing the same issues yep, I have a whole "onTouchBegan" event on the whole screen, but when I click on the screen, the first time it only dismiss the keyboard, and I need to re-click on the screen to actually trigger onTouchBegan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants