-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Touch input is off on Y axis on WASM export #10694
Comments
This was probably fixed way back in rust-windowing/winit#2704. |
@daxpedda Is that fix included in the packages listed in the report? if not, how can i update to get that? |
It's part of Winit v0.29. |
@daxpedda will this be merged into bevy main? I can wait until then |
I was just commenting because I help maintain Winit. I'm not a contributor/maintainer/member of Bevy! |
This looks like a duplicate of #9071; is it? |
Indeed, it does look like that to me. |
Bevy version
Relevant system information
cargo --version
)cargo 1.73.0 (9c4383fb5 2023-08-26)
MacOS Sonoma 14.1.1 (23B81)
What you did
I get the position of a touch like this:
then build using this script
What went wrong
touching the top right of the screen (640x480) produces the coordinates (19,218)
You can experience this by trying to press the buttons on the live version of the game on my website while using the mobile emulator for chrome.... You will have to tap about half way up the screen in order to press the buttons on the menus.
Additional information
The coordinates are off by about half the screen height, maybe it has to do with the grid originating from the middle of the screen rather than the top?
The text was updated successfully, but these errors were encountered: