Skip to content

on_mouse_leave is called for disabled Section #2675

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

Open
discully opened this issue May 5, 2025 · 1 comment
Open

on_mouse_leave is called for disabled Section #2675

discully opened this issue May 5, 2025 · 1 comment

Comments

@discully
Copy link

discully commented May 5, 2025

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.

@einarf
Copy link
Member

einarf commented May 9, 2025

@alejcas You you remember the correct behavior for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants