Peter Toth
Peter Toth

Reputation: 770

How to detect the direction of mouse wheel scrolling?

I'm looking for a way to detect mouse wheel scrolling inside my application. I tried using Listener and its PointerScrollEvent, however, I don't see a way to detect the direction of the scroll, only my pointers position and such.

It would be best if I could get an integer as to, how many 'clicks' have the user scrolled.

Is there a clean method of detecting mouse wheel scrolling AND its direction?

Many thanks

Upvotes: 1

Views: 579

Answers (1)

Peter Toth
Peter Toth

Reputation: 770

pointerSignal.scrollDelta is the property, I'm so dumb

Upvotes: 2

Related Questions