Skip to content

on_mouse_leave is called for disabled Section #2675

Open
@discully

Description

@discully

If the mouse is over a Section at the moment it is disabled (Section.enabled = False), the next time the mouse is moved the on_mouse_leave function is called for that section, even though it is now disabled.

This appears to be because dispatch_mouse_enter_leave_events does not check whether the contents of self.mouse_over_sections are still valid.

I think the same would probably happen if the Section had been removed from the SectionManager.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions