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

WebApp: e.wheelDelta is undefined on Firefox #193

Closed
L-Naej opened this issue Dec 10, 2019 · 1 comment
Closed

WebApp: e.wheelDelta is undefined on Firefox #193

L-Naej opened this issue Dec 10, 2019 · 1 comment

Comments

@L-Naej
Copy link

L-Naej commented Dec 10, 2019

Hi,
Thanks for this great plugin!

There seems to be a bug in the webapp: on Firefox, at least, e.wheelDelta is undefined in register-event.js:sendMouseWheel(e) :

function sendMouseWheel(e) {
    console.log("mouse wheel with delta " + e.wheelDelta);
// Displays: mouse wheel with delta undefined in dev console

According to this StackOverflow post, e.delta[X/Y/Z] should be used instead of e.wheelDelta.

Note: I'm using the webserver.exe downloaded from Unity.

Thanks!

@L-Naej L-Naej changed the title e.wheeldelta is undefined on Firefox WebApp: e.wheeldelta is undefined on Firefox Dec 10, 2019
@L-Naej L-Naej changed the title WebApp: e.wheeldelta is undefined on Firefox WebApp: e.wheelDelta is undefined on Firefox Dec 10, 2019
@L-Naej L-Naej closed this as completed Dec 10, 2019
@L-Naej
Copy link
Author

L-Naej commented Dec 10, 2019

Closing, sorry I think I'm tired... The console log is not correct, but the following code is actually using deltaX and deltaY...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant