Change the direction of rotation of OrbitControls on mouse flicker

We have an OrbitControls and is auto rotating. I know to change the direction, we can do this:

controls.rotateSpeed *= -1;

What I want to trigger that change is if the user flickers the mouse either to the left or right (default direction) and have the auto rotation change accordingly. If possible, how can we detect if the flicker passes a certain threshold or speed value to go ahead and to the rotation direction change? A small flicker should not make the rotation change direction for example.

@CosmicFantasy ā€“

You can listen to the PointerMove (or MouseMove) event and find how fast the mouse pointer has moved and in what direction.

ā€“ Pavel