Problem Description
The PanTool sets the window mouse owner to be itself when panning starts (_start_pan):
|
if capture_mouse: |
|
event.window.set_pointer(self.drag_pointer) |
|
event.window.set_mouse_owner(self, event.net_transform()) |
When panning stops (_end_pan), it sets the window mouse owner to None:
|
if event.window.mouse_owner == self: |
|
event.window.set_mouse_owner(None) |
Expected behavior:
I would have expected _end_pan to revert the mouse owner back to the original owner before panning started, rather than changing it to None.
Problem Description
The
PanToolsets the window mouse owner to be itself when panning starts (_start_pan):chaco/chaco/tools/pan_tool.py
Lines 257 to 259 in 192675d
When panning stops (
_end_pan), it sets the window mouse owner toNone:chaco/chaco/tools/pan_tool.py
Lines 269 to 270 in 192675d
Expected behavior:
I would have expected
_end_panto revert the mouse owner back to the original owner before panning started, rather than changing it toNone.