-
Notifications
You must be signed in to change notification settings - Fork 44
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
Allow sending "mouse move" with left/right down with EnableTestAssistant #715
Conversation
It seems in some cases mouse move events are not being handled. Need to investigate further. |
You just need to add That said, it would be nice to know why this broke those tests to begin with. |
We should maybe add support for |
Previously, if {left/right}_down was not set, they defaulted to enable/enable/tools/drag_tool.py Lines 155 to 157 in 2160808
Unfortunately that suggests this PR may break existing code out in the wild that unknowingly depended on this buggy behavior Perhaps a less disruptive fix would be to have the |
Hard question. I don't like the bug exposed here but we might want to keep the default values as |
That makes sense, I will make that change and then open a separate issue for the use of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fixes #460
This PR adds
left_down
andright_down
kwargs tomouse_move
so that the test assistant can simulate moving the mouse with either the left or right button down. As mentioned on the issue, there are cases where we expect mouse_move events to have {left/right}_down set to True. This PR also adds a simple test to check that the traits are set if we call mousee_move with the new kwargs. Additionally, thepress_move_release
method is updated so thatleft_down
is True for the mouse_move generated event itself.