Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global mouse move event not supressed #165

Open
blackgat opened this issue Sep 20, 2022 · 0 comments
Open

Global mouse move event not supressed #165

blackgat opened this issue Sep 20, 2022 · 0 comments

Comments

@blackgat
Copy link

blackgat commented Sep 20, 2022

When using global mouse event capture, some mouse movement events are not suppressed even if I set the handled flag to true during dragging.
In MouseListener, the member m_PreviousPosition is the root cause of this problem.
It looks like the callback will get zero movement from the windows system, but if we can't suppress this event it will still make the mouse move.
I wonder why it is necessary to check for zero motion in the callback? Isn't the design supposed to let the users of the library decide whether to deal with it or not?

I wrote a small program to demonstrate this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant