Answer the question
In order to leave comments, you need to log in
Wheel event and touch mouse?
I ran into a problem when catching the wheel event when using a touch mouse. The fact is that for a mouse with a wheel, the wheel works when the threshold is switched (or whatever the scroll step is called), while for touch mice everything is much sadder. Firstly, for a touch mouse it is not necessary to keep your finger on the touchpad so that it continues to scroll, that is, if you scrolled strongly with your finger on the touchpad, the wheel event will fire for some more time (or even 7 seconds). All this is done, as I understand it, to soften the scroll for convenient (pathetic) use of touch mice.
I must say right away that I have a Microsoft mouse and that the duration of the operation of the event itself can vary from the mouse itself and from the computer settings (already tested).
The crux of the matter is as follows. How to catch or how to distinguish that the event fired at the moment when the finger is on the touchpad, and these are not residual calls that the mouse throws to soften the scroll.
I already tried to write a script to catch all events whose interval is 50 milliseconds, but in vain because if for some mice and settings it will ignore unnecessary events, then for others it won’t or will ignore it altogether. So don't rely on time here.
Maybe there is some property that stores data that will help distinguish between a normal wheel and a pseudo wheel
Answer the question
In order to leave comments, you need to log in
Hello. Perhaps our development
will help you Have
n't had time to write the documentation yet (an article on Habr is also planned). The module does exactly what you need - it normalizes the work of inertial mice and triggers exactly new user touch actions.
Demo work .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question