pixi-viewport
pixi-viewport copied to clipboard
Is there any way to distinguish touchpad wheelEvent from mouse wheelEvent?
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!
There's not a great way to do this. I have had luck with this one: https://stackoverflow.com/a/62415754
Thank you. I have one more question: wheelDeltaY is undefined in event object in wheel event handler. What can I do with it?