You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
please note that the touch is being reported not even related to the browser window (which I could've worked around giving the app its canvas coordinates) bit the phone screen itself, as shown in the attached screencast
for mouse event comparison, the example deployed also has mouse event system; click couple times (to focus the element first, then to emit the actuan event)
Bevy version
0.10.1
What you did
Compiled into wasm / attached to a specific canvas (but I think no explicit canvas will do as well)
What went wrong
touch events are relative to the canvas
touch events are reported relative to the screen (not even to the browser window!)
Other information that can be used to further reproduce or isolate the problem.
telegram-cloud-document-2-5282792564146056949.mp4
explicitly send
canvas.getBoundingClientRect()and use this data in your system to calculate the actual touch coordsprobably #7528
https://touchies.apps.loskutoff.com/
https://github.com/Firfi/touchies
please note that the touch is being reported not even related to the browser window (which I could've worked around giving the app its canvas coordinates) bit the phone screen itself, as shown in the attached screencast
for mouse event comparison, the example deployed also has mouse event system; click couple times (to focus the element first, then to emit the actuan event)