Replies: 1 comment 1 reply
-
This is something I've wanted to look at. Xcb/X11 generates mouse button release and move events with the time timestamp, but Windows doesn't provide this level of info so will need some other means to confirm that the even release is happening while the mouse is still moving. A customizable time delta is a potential way to solve it, so if you can get it work reliably with submit a PR :-) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the Trackball of VSG, the throw feature of the mouse is supported. This feature is achieved through the statement:
if (supportsThrow) _thrown = _previousPointerEvent && (buttonRelease.time == _previousPointerEvent->time);
However, the condition that checks if
buttonRelease.time
is equal to_previousPointerEvent->time
is too stringent, or in a practical sense, these two times will not be exactly equal. It would be more appropriate to check if the time difference between them is within a millisecond range, as shown in the following code:Would you accept such a modification?
Beta Was this translation helpful? Give feedback.
All reactions