-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
UiEvent.pageX does not exixt #1095
Comments
Hm interesting! Looks like on Firefox |
FWIW I switched to Yup I was indeed using Chrome and I didn't check Firefox so that could be the problem! |
I look in the docs. It says that (emphasis added by me)
And in the Specifications Section:
So may be just access MouseEvent.pageX directly, not via UiEvent. |
@chinedufn, I guess you import these things yourself (not using I think this is still an issue in |
I'm using |
Hm ok now that I look into this I think it's a bug that we're still using the old "structural" intepretation of field accesses throughout web-sys. After #1019 it's intended that web-sys switched over to just accessing properties directly, and not doing so is a bug we forgot to fix! I'll submit a fix for this shortly. |
This was an intended change from rustwasm#1019, but we forgot to apply it! Closes rustwasm#1095
This code panics when I mouse over my canvas
I have the
MouseEvent
andUiEvent
features enabled.I'm using wasm-bindgen
0.2.29
The text was updated successfully, but these errors were encountered: