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

Is there any way to distinguish touchpad wheelEvent from mouse wheelEvent? #460

Open
RhapsodY-69 opened this issue Sep 5, 2023 · 2 comments

Comments

@RhapsodY-69
Copy link

I have 'wheel' event handler on pixi-viewport, but I need to know exactly what is user scrolling with, mouse wheel or touchpad. I tried many different solutions from stackoverflow and etc. But none of them worked for me.
I will be very grateful if you could help somehow!

@davidfig
Copy link
Owner

davidfig commented Sep 5, 2023

There's not a great way to do this. I have had luck with this one: https://stackoverflow.com/a/62415754

@RhapsodY-69
Copy link
Author

Thank you. I have one more question: wheelDeltaY is undefined in event object in wheel event handler. What can I do with it?

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

2 participants