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
It seems that using the Escape key to toggle capture may conflict a bit with the browser also using Escape to release capture, that might be the source of some of the weird behavior. So I've updated the example to use Space instead.
While that did at least address some of the weirdness with re-capturing the cursor however, what I noticed was that it still showed only the X mouse movement to register when using Chrome.
However in Edge, it only has Y mouse movement registering.
In Firefox it registers both X and Y mouse movement, but the movement is not smooth, almost "drunk" like by sometimes not moving in the correct direction as expected.
Ebitengine Version
2.5
Operating System
Go Version (
go version
)1.19.6
What steps will reproduce the problem?
Created an example and gh-pages to host the wasm example in my fork:
https://harbdog.github.io/ebiten/
Branch:
wasm_mouse_capture
https://github.com/harbdog/ebiten/tree/wasm_mouse_capture
It works when not using WASM:
What is the expected result?
Mouse capture should work in browser the same as it does in desktop application mode.
What happens instead?
The mouse tends to move only in a single direction or jumps around unexpectedly.
Anything else you feel useful to add?
No response
The text was updated successfully, but these errors were encountered: