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 |
fixes #460
This PR adds
left_downandright_downkwargs tomouse_moveso 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_releasemethod is updated so thatleft_downis True for the mouse_move generated event itself.