pixi-viewport icon indicating copy to clipboard operation
pixi-viewport copied to clipboard

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

Open RhapsodY-69 opened this issue 2 years ago • 2 comments

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!

RhapsodY-69 avatar Sep 05 '23 09:09 RhapsodY-69

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

davidfig avatar Sep 05 '23 11:09 davidfig

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

RhapsodY-69 avatar Sep 06 '23 20:09 RhapsodY-69