Skip to content

PanTool does not restore window mouse owner after panning #519

@mdsmarte

Description

@mdsmarte

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions