Skip to content
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

Engine locked "touchend" event in Web Exported game #33020

Closed
zavijavasoft opened this issue Oct 23, 2019 · 0 comments · Fixed by #42178
Closed

Engine locked "touchend" event in Web Exported game #33020

zavijavasoft opened this issue Oct 23, 2019 · 0 comments · Fixed by #42178

Comments

@zavijavasoft
Copy link

Godot version:
3.1.1
OS/device including version:
Android 9 on Xiaomi Redmi Note 6 (any browser), Ubuntu Linux 18.04, Window 10 (Yandex Browser in mobile debug mode)
Issue description:
When any html elements (e.g. ads popup) displays over GodotCanvas by call JavaScript.eval(), no touchend JS event passed to that elements. This behaviour blocks onclick JS events and the user can't click on html elements. Removing touchend handler by Chromium DevTools (handler assigned to game's js file) allows to click the element.
On desktop (mouse events) all works correctly. On mobile browser in desktop mode is the same bug.
Steps to reproduce:
Create any Godot app (even empty screen). Add JavaScript snippet that dinamically displays, e.g. button, alerting on click (no difference, either snippet added in HTML shell or hardcoded to GDScript or else). Call this snippet with JavaScript.eval() from GDScript.
Export app to HTML5, open on web-server and try to click button.
Minimal reproduction project:
This app creates empty scene with timer and after 3 seconds from start displays button.
YaDummy.zip

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